summaryrefslogtreecommitdiff
path: root/perl-data-modemerge/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-07 13:38:17 +0200
committerErich Eckner <git@eckner.net>2017-09-07 13:38:17 +0200
commit91b89069348c15dabf9b603ee9a63824cbe851f4 (patch)
treed842cbda0cd6ae159712c041cffe5d43f405ed28 /perl-data-modemerge/PKGBUILD
parent3ba0c0320159dc3e55327364dc06cf4e8ae209bc (diff)
downloadarchlinuxewe.git.save-91b89069348c15dabf9b603ee9a63824cbe851f4.tar.xz
perl-data-modemerge neu
Diffstat (limited to 'perl-data-modemerge/PKGBUILD')
-rw-r--r--perl-data-modemerge/PKGBUILD83
1 files changed, 83 insertions, 0 deletions
diff --git a/perl-data-modemerge/PKGBUILD b/perl-data-modemerge/PKGBUILD
new file mode 100644
index 00000000..45bc299c
--- /dev/null
+++ b/perl-data-modemerge/PKGBUILD
@@ -0,0 +1,83 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (97841193a0046800a1ed3cebc0718afe92066b6f1190519a623e66830c355902620a8d956439b9825c773ea4af1a5a3ff917dc0d9a50bafb588ca09da5980c74)
+
+pkgname='perl-data-modemerge'
+pkgver='0.35'
+pkgrel='1'
+pkgdesc='Merge two nested data structures, with merging modes and options'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.10.1'
+ 'perl-data-dmp'
+ 'perl-exporter'
+ 'perl-mo'
+)
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-lib'
+ 'perl-pathtools'
+ 'perl-test-exception'
+ 'perl-test-simple>=0.98'
+)
+checkdepends=(
+ 'perl-pod-coverage-trustpod'
+ 'perl-test-pod'
+ 'perl-test-pod-coverage'
+)
+url='https://metacpan.org/release/Data-ModeMerge'
+_distdir="Data-ModeMerge-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz")
+sha512sums=('3f6601f888515aeb0338498bcb3e20464416313d10639dfbcf786ce2e1f8c10ce7e3c94accb7add37ee75fcb33269612c9dfd19c27d10c8bc2ad9ce3d40e2f6a')
+
+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
+}