summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-30 20:01:55 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-30 20:01:55 (GMT)
commit7b9806595225b8afd007f42b19bf0444e1a498aa (patch)
tree1fdf28b9eeae15dabc8fbdc9ecbd3f0c40dd276d
parent893461bf7af3767c25cdead0d9594fed1ea409c3 (diff)
downloadlinhes_pkgbuild-7b9806595225b8afd007f42b19bf0444e1a498aa.zip
linhes_pkgbuild-7b9806595225b8afd007f42b19bf0444e1a498aa.tar.gz
linhes_pkgbuild-7b9806595225b8afd007f42b19bf0444e1a498aa.tar.bz2
perl-specio: initial
-rw-r--r--abs/core/perl_modules/perl-specio/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-specio/PKGBUILD b/abs/core/perl_modules/perl-specio/PKGBUILD
new file mode 100644
index 0000000..c2f734c
--- /dev/null
+++ b/abs/core/perl_modules/perl-specio/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 191857 2016-10-10 11:17:38Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=perl-specio
+pkgver=0.42
+pkgrel=1
+pkgdesc="Type constraints and coercions for Perl"
+arch=('any')
+url="http://search.cpan.org/dist/Specio"
+license=('GPL' 'PerlArtistic')
+depends=('perl-role-tiny' 'perl-test-fatal' 'perl-mro-compat' 'perl-devel-stacktrace')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Specio-$pkgver.tar.gz)
+sha256sums=('23298b93a26d7ae3c1d58106f5898d84ddc71b626afdbf801bddb04d5e524ef6')
+
+build() {
+ cd "$srcdir"/Specio-$pkgver
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+package() {
+ cd "$srcdir"/Specio-$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;
+}