summaryrefslogtreecommitdiff
path: root/perl-hash-merge
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-08 12:56:33 +0200
committerErich Eckner <git@eckner.net>2017-08-08 12:56:33 +0200
commitfd480c92beedfa36ddc3635c636e2a17b0f868a7 (patch)
tree8fa49a14cbaf8a855ad0e3fb01afb5276f415df9 /perl-hash-merge
parentf405d0f8a48362ba15bdcc0feabb5b979fcadd3a (diff)
downloadarchlinuxewe-fd480c92beedfa36ddc3635c636e2a17b0f868a7.tar.xz
perl-hash-merge neu
Diffstat (limited to 'perl-hash-merge')
-rw-r--r--perl-hash-merge/PKGBUILD69
1 files changed, 69 insertions, 0 deletions
diff --git a/perl-hash-merge/PKGBUILD b/perl-hash-merge/PKGBUILD
new file mode 100644
index 000000000..a1a417d90
--- /dev/null
+++ b/perl-hash-merge/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (2187f3ca33d7c791f08a9ab8c3893497ec9caa377e13a9f4565f67f0abb693a7e3c3edb2792f2bae0865f195eb47b422ea736d98c72a803ee24cecfcdfa2829f)
+
+pkgname='perl-hash-merge'
+pkgver='0.200'
+pkgrel='1'
+pkgdesc='Merges arbitrarily deep hashes into a single hash'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.8.1'
+ 'perl-clone'
+)
+makedepends=(
+ 'perl-extutils-makemaker'
+ 'perl-test-simple>=0.9'
+)
+url='https://metacpan.org/release/Hash-Merge'
+_distdir="Hash-Merge-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/R/RE/REHSACK/${_distdir}.tar.gz")
+sha512sums=('b04f5229f70630d5a1552dcff83743d4c053bfd8b7b294fb03b21f2e7c12b6540a39e6c93fe016960686e1e9107dc0507d15406247da827fb608bc273e53eeec')
+
+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
+}