forked from BlackArch/blackarch-pkgbuilds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD-perl-lib
37 lines (28 loc) · 875 Bytes
/
PKGBUILD-perl-lib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=NAME
pkgver=VERSION
pkgrel=1
pkgdesc='Short description without using the package name itself.'
arch=('any' OR 'x86_64' 'aarch64')
url='URL pointing to download section of package'
license=('WHATEVER' OR 'custom:unknown')
options=('!emptydirs')
depends=('perl')
source=("http://search.cpan.org/CPAN/authors/foo/bar/$pkgname-$pkgver.tar.gz")
sha512sums=()
build() {
cd $pkgname
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
/usr/bin/perl Makefile.PL
make
)
}
package() {
cd $pkgname
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}