summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-06 21:05:33 +0100
committerErich Eckner <git@eckner.net>2019-01-06 21:05:33 +0100
commit8782891ecbd91d4dc3bbe61e9215b14f54059169 (patch)
tree5cffcd1a2a8514347f7c48b4b75714a766c169e3
parent7434efc0913978f0596c239589b47a0597dc0a27 (diff)
downloadarchlinuxewe-8782891ecbd91d4dc3bbe61e9215b14f54059169.tar.xz
perl-package-util-lite neu
-rw-r--r--perl-package-util-lite/PKGBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/perl-package-util-lite/PKGBUILD b/perl-package-util-lite/PKGBUILD
new file mode 100644
index 000000000..2e9ad4057
--- /dev/null
+++ b/perl-package-util-lite/PKGBUILD
@@ -0,0 +1,72 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (6d6eb887751f0274ce913321f40e306c692f5baa957799c6668772e8771f1b10c566613dde872a04de2cb279fd80591fac591849b34aeed27f7fa5f9120faf43)
+
+pkgname='perl-package-util-lite'
+pkgver='0.001'
+pkgrel='1'
+pkgdesc='Package-related utilities'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl'
+ 'perl-exporter>=5.57'
+)
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-simple>=0.98'
+)
+url='https://metacpan.org/release/Package-Util-Lite'
+_distdir="Package-Util-Lite-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz")
+sha512sums=('d9c4347ba50b490352c4b2e6ef93b3dd2445c3e4b172b2f820d02777abcffba7b3de47f1d434676503e67c18976cf672c5bdb95545ab00092c8985e8bfde723a')
+
+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
+}