summaryrefslogtreecommitdiff
path: root/perl-data-dmp/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-07 12:19:42 +0200
committerErich Eckner <git@eckner.net>2017-09-07 12:19:42 +0200
commitf72048e4344ee298ca5c39cd8a1111f3a5351bd2 (patch)
treeb75d8cbb057ea0e45ebc88335f01104d786fd7c8 /perl-data-dmp/PKGBUILD
parent83c1ef49df94686ce9ad4c5048632120f4a5c6f0 (diff)
downloadarchlinuxewe-f72048e4344ee298ca5c39cd8a1111f3a5351bd2.tar.xz
perl-data-dmp neu
Diffstat (limited to 'perl-data-dmp/PKGBUILD')
-rw-r--r--perl-data-dmp/PKGBUILD81
1 files changed, 81 insertions, 0 deletions
diff --git a/perl-data-dmp/PKGBUILD b/perl-data-dmp/PKGBUILD
new file mode 100644
index 000000000..d6baff6ea
--- /dev/null
+++ b/perl-data-dmp/PKGBUILD
@@ -0,0 +1,81 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (97841193a0046800a1ed3cebc0718afe92066b6f1190519a623e66830c355902620a8d956439b9825c773ea4af1a5a3ff917dc0d9a50bafb588ca09da5980c74)
+
+pkgname='perl-data-dmp'
+pkgver='0.23'
+pkgrel='1'
+pkgdesc='Dump Perl data structures as Perl code'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.10.1'
+ 'perl-exporter'
+ 'perl-regexp-stringify'
+ 'perl-scalar-list-utils'
+)
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-simple>=0.98'
+)
+checkdepends=(
+ 'perl-pod-coverage-trustpod'
+ 'perl-test-pod'
+ 'perl-test-pod-coverage'
+)
+url='https://metacpan.org/release/Data-Dmp'
+_distdir="Data-Dmp-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz")
+sha512sums=('79e992433f09488ef348a9aff75063c0aab713696f284b7343db4a338d9030d11bb66fca0c772bed9ff36f442b1981dd3d4c7bb0f904de7ffa71f95b135849a6')
+
+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}"
+
+ export AUTHOR_TESTING=1
+
+ # 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
+}