summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-30 18:39:04 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-30 18:39:04 (GMT)
commit4dee1a40aa2947bddc8ebdee7695eadd798a1228 (patch)
treece5021788d02c8e987df757b2427106735a60ad4
parentcc0379c3b82f117b278a8aeabd109333c35cb032 (diff)
downloadlinhes_pkgbuild-4dee1a40aa2947bddc8ebdee7695eadd798a1228.zip
linhes_pkgbuild-4dee1a40aa2947bddc8ebdee7695eadd798a1228.tar.gz
linhes_pkgbuild-4dee1a40aa2947bddc8ebdee7695eadd798a1228.tar.bz2
perl-class-methodmaker: update to 2.24
-rw-r--r--abs/core/perl_modules/perl-class-methodmaker/PKGBUILD31
1 files changed, 21 insertions, 10 deletions
diff --git a/abs/core/perl_modules/perl-class-methodmaker/PKGBUILD b/abs/core/perl_modules/perl-class-methodmaker/PKGBUILD
index 4b5ac7c..8fb04d3 100644
--- a/abs/core/perl_modules/perl-class-methodmaker/PKGBUILD
+++ b/abs/core/perl_modules/perl-class-methodmaker/PKGBUILD
@@ -3,22 +3,33 @@
# Contributor: François Charette <firmicus ατ gmx δοτ net>
pkgname=perl-class-methodmaker
-pkgver=2.18
-pkgrel=4
+pkgver=2.24
+pkgrel=5
pkgdesc="Create generic class methods"
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="http://search.cpan.org/dist/Class-MethodMaker"
license=('GPL' 'PerlArtistic')
-depends=('perl>=5.10.0')
+depends=('perl')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/Class-MethodMaker-${pkgver}.tar.gz")
-md5sums=('99435d78e0a1754b102fe39597c6c3df')
+source=("http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/class-methodmaker/Class-MethodMaker-${pkgver}.tar.gz")
+md5sums=('6fac1ed1fea8a4e42d36a4d07c8bfa09')
build() {
- cd $srcdir/Class-MethodMaker-$pkgver
+ cd "$srcdir"/Class-MethodMaker-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
- make install DESTDIR=$pkgdir
- find $pkgdir -name '.packlist' -delete
- find $pkgdir -name '*.pod' -delete
+}
+
+package() {
+ cd "$srcdir"/Class-MethodMaker-$pkgver
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
}