summaryrefslogtreecommitdiff
path: root/perl-list-compare
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-07 10:26:24 +0200
committerErich Eckner <git@eckner.net>2017-09-07 10:26:24 +0200
commitf7a97db8442c5ad44104bd662fdffb3a45124bc6 (patch)
tree9fbc4fae945854790061b3bcd37b0084857819c8 /perl-list-compare
parent2b7c7c3c1a4140162455e64877e3b7c3d9afccc1 (diff)
downloadarchlinuxewe-f7a97db8442c5ad44104bd662fdffb3a45124bc6.tar.xz
perl-list-compare neu
Diffstat (limited to 'perl-list-compare')
-rw-r--r--perl-list-compare/PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/perl-list-compare/PKGBUILD b/perl-list-compare/PKGBUILD
new file mode 100644
index 000000000..3d155f62c
--- /dev/null
+++ b/perl-list-compare/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (891ddb3256dcf7fddc2e9411937d2e79af92d49619de3f7b89622910f138c28ba93dfdb1f29ffc8e152e5942feb88e6f71f901570a155e3fdb4c7c6cca6f59c1)
+
+pkgname='perl-list-compare'
+pkgver='0.53'
+pkgrel='1'
+pkgdesc='Compare elements of two or more lists'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+makedepends=(
+ 'perl-extutils-makemaker'
+ 'perl-io-captureoutput'
+ 'perl-test-simple>=0.1'
+)
+url='https://metacpan.org/release/List-Compare'
+_distdir="List-Compare-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/J/JK/JKEENAN/${_distdir}.tar.gz")
+sha512sums=('b467e9395afa8297f5f59d745d22048373cfd60dc0c8ce56d0ad95e8f9fddcda487d99c906b9fb5ac1b28aa53873a7c9689347866c3aa907aecd31b4a127627a')
+
+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
+}