summaryrefslogtreecommitdiff
path: root/perl-data-sah-coerce
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-07 12:35:33 +0200
committerErich Eckner <git@eckner.net>2017-09-07 12:35:33 +0200
commit0bd41c4e2395eacd464a01091188bfc333f55a66 (patch)
tree292ed3142dbb7c3eb07b39b87cfa1e853b81839d /perl-data-sah-coerce
parent9c6271e2a12507019bb32c51ce699e1896df37dc (diff)
downloadarchlinuxewe.git.save-0bd41c4e2395eacd464a01091188bfc333f55a66.tar.xz
perl-data-sah-coerce neu
Diffstat (limited to 'perl-data-sah-coerce')
-rw-r--r--perl-data-sah-coerce/PKGBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/perl-data-sah-coerce/PKGBUILD b/perl-data-sah-coerce/PKGBUILD
new file mode 100644
index 00000000..64a0553e
--- /dev/null
+++ b/perl-data-sah-coerce/PKGBUILD
@@ -0,0 +1,80 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (97841193a0046800a1ed3cebc0718afe92066b6f1190519a623e66830c355902620a8d956439b9825c773ea4af1a5a3ff917dc0d9a50bafb588ca09da5980c74)
+
+pkgname='perl-data-sah-coerce'
+pkgver='0.023'
+pkgrel='1'
+pkgdesc='Coercion rules for Data::Sah'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.10.1'
+ 'perl-exporter'
+ 'perl-file-temp'
+ 'perl-ipc-system-options>=0.27'
+ 'perl-json'
+ 'perl-log-ger>=0.011'
+ 'perl-nodejs-util>=0.006'
+ 'perl-perlancar-module-list'
+)
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-exception'
+ 'perl-test-needs'
+ 'perl-test-simple>=0.98'
+)
+url='https://metacpan.org/release/Data-Sah-Coerce'
+_distdir="Data-Sah-Coerce-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz")
+sha512sums=('5795afdbe0a6b722d571494cda469c0eaab7f8b2e1fc2ab6e7cad730df4480024831472f74fa4963bf44dcad59530483a23b0a8a6033057d6771fb1965beaf0c')
+
+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
+}