summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-02-13 18:23:13 +0100
committerErich Eckner <git@eckner.net>2017-02-13 18:23:13 +0100
commitef82ac09ae1fbd02342756f97382c6296513cb78 (patch)
tree7657c2064f88c95fc0f1a5d6af887c6bdbfb2cae
parentcb35652605edb00b9783a45c8b780cc1280b4f84 (diff)
downloadarchlinuxewe.git.save-ef82ac09ae1fbd02342756f97382c6296513cb78.tar.xz
perl-devel-confess neu
-rw-r--r--perl-devel-confess/PKGBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/perl-devel-confess/PKGBUILD b/perl-devel-confess/PKGBUILD
new file mode 100644
index 00000000..4992afb7
--- /dev/null
+++ b/perl-devel-confess/PKGBUILD
@@ -0,0 +1,72 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (54bfd7cca693b229aa53ffc98d551b62ea234aaa5be7e6717857610a2da6803b0be2dfe7ddfe9810cf320c477023b3b4356d47df7f8c202ed8c14d71b472c0bc)
+
+pkgname='perl-devel-confess'
+pkgver='0.009003'
+pkgrel='1'
+pkgdesc='Include stack traces on all warnings and errors'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.6.0'
+ 'perl-carp'
+ 'perl-scalar-list-utils')
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-file-temp'
+ 'perl-pathtools'
+ 'perl-safe'
+ 'perl-test-simple')
+url='https://metacpan.org/release/Devel-Confess'
+_distdir="Devel-Confess-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/H/HA/HAARG/${_distdir}.tar.gz")
+sha512sums=('97e43f179b3c9a99ad1ce47e19411f3480808f9bb06139bff27d459f53e9e16f60aa843d04fe2615dbd98d92b7437118644e16e1dc2f7d3aee643fc610493d8f')
+
+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
+}