summaryrefslogtreecommitdiff
path: root/perl-b-keywords/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-14 15:39:22 +0200
committerErich Eckner <git@eckner.net>2017-08-14 15:39:22 +0200
commit9d359590305fa9381fd064a27e5cd9246fd24aba (patch)
tree34dc54c0807cf6a89e413a46923d05a3ad6ed14f /perl-b-keywords/PKGBUILD
parente54f850590555078857a7480fd1784212d8f9521 (diff)
downloadarchlinuxewe-9d359590305fa9381fd064a27e5cd9246fd24aba.tar.xz
perl-b-keywords neu
Diffstat (limited to 'perl-b-keywords/PKGBUILD')
-rw-r--r--perl-b-keywords/PKGBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/perl-b-keywords/PKGBUILD b/perl-b-keywords/PKGBUILD
new file mode 100644
index 000000000..2cf1c8b50
--- /dev/null
+++ b/perl-b-keywords/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (81044437a0458748ba63ce98e280fb950cfc5fd9f6a8e92edb2cd237a9a993a3dd847afaa0873f9e70622698c95b48c06c84512f1e0c154825fe84c9c758d8fa)
+
+pkgname='perl-b-keywords'
+pkgver='1.15'
+pkgrel='1'
+pkgdesc='Lists of reserved barewords and symbol names'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl'
+)
+makedepends=(
+ 'perl-extutils-makemaker'
+)
+url='https://metacpan.org/release/B-Keywords'
+_distdir="B-Keywords-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/R/RU/RURBAN/${_distdir}.tar.gz")
+sha512sums=('41d06de68d010095efd643153db10fb6c3cf33e320d576f76b9b60b2a96d1f0ad9da41741b4e57a3c78c8516197b81a5a6110cc6a49ee4ddf1b33085d7bcd913')
+
+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
+}