From 48efb5d5dd577d3d7364bad1c7580a46e8fdc884 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 28 Apr 2016 14:28:41 +0200 Subject: perl-safe-isa neu --- perl-safe-isa/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 perl-safe-isa/PKGBUILD (limited to 'perl-safe-isa') diff --git a/perl-safe-isa/PKGBUILD b/perl-safe-isa/PKGBUILD new file mode 100644 index 00000000..a0266f90 --- /dev/null +++ b/perl-safe-isa/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Erich Eckner + +pkgname='perl-safe-isa' +pkgver='1.000005' +pkgrel='1' +pkgdesc='Call isa, can, does and DOES safely on things that may not be objects' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=( + 'perl' +) +checkdepends=() +url='https://metacpan.org/release/Safe-Isa' +_distdir="Safe-Isa-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/${_distdir}.tar.gz") +sha512sums=('5b3fc6503dc85eb20306af5eb5b10d36a1e0d1e7cd2ff0ee361857d581e8550a194647bdbbb7fedb40b808f36afc004c51e934b62616e73ac282562dda76308e') + +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 "$srcdir/$_distdir" + perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make 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: -- cgit v1.2.3-70-g09d2