diff options
author | Erich Eckner <git@eckner.net> | 2017-08-08 12:58:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-08 12:58:03 +0200 |
commit | 4eac8579ab1a4610bf9e89560e2c99b62359a834 (patch) | |
tree | 5234017bd05a2dfc3b904e917c07f644d549eb70 /perl-scope-guard | |
parent | 151b8f6056f4af06194be6cce416eb3c3a6e063c (diff) | |
download | archlinuxewe-4eac8579ab1a4610bf9e89560e2c99b62359a834.tar.xz |
perl-scope-guard neu
Diffstat (limited to 'perl-scope-guard')
-rw-r--r-- | perl-scope-guard/PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/perl-scope-guard/PKGBUILD b/perl-scope-guard/PKGBUILD new file mode 100644 index 000000000..17a45a115 --- /dev/null +++ b/perl-scope-guard/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Generator : neuesPerlPaket (2187f3ca33d7c791f08a9ab8c3893497ec9caa377e13a9f4565f67f0abb693a7e3c3edb2792f2bae0865f195eb47b422ea736d98c72a803ee24cecfcdfa2829f) + +pkgname='perl-scope-guard' +pkgver='0.21' +pkgrel='1' +pkgdesc='lexically-scoped resource management' +arch=('x86_64' 'i686') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=( + 'perl>=5.6.1' +) +makedepends=( + 'perl-extutils-makemaker' + 'perl-test-simple' +) +url='https://metacpan.org/release/Scope-Guard' +_distdir="Scope-Guard-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/${_distdir}.tar.gz") +sha512sums=('65492e08ab79dc323649166e83ffc13c6f1fffaa9c60d581d8854dfe427a54a3c3c5e4d8b90308d4b1a31a1a54c7977b4e1d36fc9005c6e716c2361ce187fc9f') + +build() { + cd "${srcdir}/${_distdir}" + + # Setting these env variables overwrites any command-line-options we don't want... + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \ + PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \ + MODULEBUILDRC=/dev/null + + # If using Makefile.PL + if [ -r Makefile.PL ]; then + perl Makefile.PL + make + # If using Build.PL + elif [ -r Build.PL ]; then + perl Build.PL + perl Build + fi +} + +check() { + cd "${srcdir}/${_distdir}" + + # If using Makefile.PL + if [ -r Makefile.PL ]; then + make test + # If using Build.PL + elif [ -r Build.PL ]; then + perl Build test + fi +} + +package() { + cd "${srcdir}/${_distdir}" + + # If using Makefile.PL + if [ -r Makefile.PL ]; then + make install + # If using Build.PL + elif [ -r Build.PL ]; then + perl Build install + fi + + # remove perllocal.pod and .packlist + find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete +} |