summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-compress-bzip2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/perl_modules/perl-compress-bzip2/PKGBUILD')
-rw-r--r--abs/core/perl_modules/perl-compress-bzip2/PKGBUILD26
1 files changed, 17 insertions, 9 deletions
diff --git a/abs/core/perl_modules/perl-compress-bzip2/PKGBUILD b/abs/core/perl_modules/perl-compress-bzip2/PKGBUILD
index 7f5e2bc..8f46324 100644
--- a/abs/core/perl_modules/perl-compress-bzip2/PKGBUILD
+++ b/abs/core/perl_modules/perl-compress-bzip2/PKGBUILD
@@ -1,26 +1,34 @@
-# $Id: PKGBUILD 160507 2012-06-02 10:27:00Z bluewind $
+# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
pkgname=perl-compress-bzip2
_realname=Compress-Bzip2
-pkgver=2.09
-pkgrel=5
+pkgver=2.26
+pkgrel=4
pkgdesc="Interface to Bzip2 compression library"
-arch=(i686 x86_64)
+arch=(x86_64)
license=(GPL2)
depends=(perl bzip2)
-url="http://search.cpan.org/dist/Compress-Bzip2"
+url="https://metacpan.org/release/Compress-Bzip2"
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/A/AR/ARJAY/$_realname-$pkgver.tar.gz")
-md5sums=('1699fde3e86f2a036f135ae606d456bf')
+source=(https://cpan.metacpan.org/authors/id/R/RU/RURBAN/${_realname}-${pkgver}.tar.gz)
+sha256sums=('5132f0c5f377a54d77ee36d332aa0ece585c22a40f2c31f2619e40262f5c4f0c')
build() {
- cd "$srcdir/$_realname-$pkgver"
+ cd $_realname-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
- cd "$srcdir/$_realname-$pkgver"
+ cd $_realname-$pkgver
make DESTDIR="$pkgdir" install
+
+# 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;
}