blob: f70a01e93e66316ec5da9bfc20069947be8c4e4d (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Justin Davis <jrcd83@gmail.com>
# $Id: PKGBUILD 57540 2011-10-30 17:10:04Z juster $
pkgname=perl-try-tiny
pkgver=0.11
pkgrel=1
pkgdesc="minimal try/catch with proper localization of \$@"
arch=(any)
license=(PerlArtistic GPL)
options=(!emptydirs)
makedepends=('perl-extutils-makemaker')
checkdepends=('perl-test-simple')
url=https://metacpan.org/release/Try-Tiny
source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-${pkgver}.tar.gz")
md5sums=(4d2c8ff385ac3513edf4c042dd0eacbe)
sha512sums=(42a98d0996e4195b1618e99080f67791ec9b09c8c4de669aafcbe75c609718d700a6831dd5a68d8f7bda563c29ce3a8495bbf548b8d38a155471875889d8c701)
_distdir="${srcdir}/Try-Tiny-${pkgver}"
build() {
( 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
cd "$_distdir"
/usr/bin/perl Makefile.PL
make
)
}
check() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
cd "$_distdir"
make test
)
}
package() {
cd "$_distdir"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
|