summaryrefslogtreecommitdiff
path: root/perl-probe-perl/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-30 09:21:02 +0200
committerErich Eckner <git@eckner.net>2017-08-30 09:21:02 +0200
commite4370359adfd0cf0a99c505793091faf983d2f5d (patch)
treeb081450db81e2911eba3577d9f922fa0b85bbaf3 /perl-probe-perl/PKGBUILD
parent3f817a5b7742a035fb0ba7cb5e36a3a13bdc2bca (diff)
downloadarchlinuxewe-e4370359adfd0cf0a99c505793091faf983d2f5d.tar.xz
perl-probe-perl neu
Diffstat (limited to 'perl-probe-perl/PKGBUILD')
-rw-r--r--perl-probe-perl/PKGBUILD69
1 files changed, 69 insertions, 0 deletions
diff --git a/perl-probe-perl/PKGBUILD b/perl-probe-perl/PKGBUILD
new file mode 100644
index 000000000..612e695c3
--- /dev/null
+++ b/perl-probe-perl/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (1defbcf32afb33ec54a2b45a3b72b4d049f690f6dbc08511ad48f4db6f85a4ecd583a13fcec1172e0d3c1ca342a483beb851ba887d67450c25231cc0aafdf66b)
+
+pkgname='perl-probe-perl'
+pkgver='0.03'
+pkgrel='1'
+pkgdesc='Information about the currently running perl'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl'
+ 'perl-pathtools'
+)
+makedepends=(
+ 'perl-extutils-makemaker>=6.30'
+ 'perl-test'
+)
+url='https://metacpan.org/release/Probe-Perl'
+_distdir="Probe-Perl-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/K/KW/KWILLIAMS/${_distdir}.tar.gz")
+sha512sums=('739bdb9d1a74eb77ab885a5aca861a1915cadbb1002bb4cb0d21fc6940ae6b3aa64ee52951ac8b2dca41c9e8fe188e17ae5f3c848c4a1caaf66fec5d25bef49c')
+
+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
+}