summaryrefslogtreecommitdiff
path: root/perl-probe-perl/PKGBUILD
diff options
context:
space:
mode:
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 00000000..612e695c
--- /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
+}