diff options
author | Erich Eckner <git@eckner.net> | 2016-04-28 14:28:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-29 10:00:40 +0200 |
commit | 48efb5d5dd577d3d7364bad1c7580a46e8fdc884 (patch) | |
tree | 5583eabcbe804bd4bc1ecad71b0faed62083d0af /perl-safe-isa | |
parent | 299a3ac7858d8e62088eff939cf858b783236b96 (diff) | |
download | archlinuxewe-48efb5d5dd577d3d7364bad1c7580a46e8fdc884.tar.xz |
perl-safe-isa neu
Diffstat (limited to 'perl-safe-isa')
-rw-r--r-- | perl-safe-isa/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/perl-safe-isa/PKGBUILD b/perl-safe-isa/PKGBUILD new file mode 100644 index 000000000..a0266f901 --- /dev/null +++ b/perl-safe-isa/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> + +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: |