summaryrefslogtreecommitdiff
path: root/perl-modern-perl/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-23 11:37:22 +0200
committerErich Eckner <git@eckner.net>2016-05-23 11:37:22 +0200
commitc0e34062ca2777c78aa1847d8fbda5ca65cc5b11 (patch)
tree97df6208e6147612f649f5447ccc7e29da127b68 /perl-modern-perl/PKGBUILD
parente29222a2e3342960e8ea3405f7d15d0fbe1df595 (diff)
downloadarchlinuxewe-c0e34062ca2777c78aa1847d8fbda5ca65cc5b11.tar.xz
perl-modern-perl neu
Diffstat (limited to 'perl-modern-perl/PKGBUILD')
-rw-r--r--perl-modern-perl/PKGBUILD71
1 files changed, 71 insertions, 0 deletions
diff --git a/perl-modern-perl/PKGBUILD b/perl-modern-perl/PKGBUILD
new file mode 100644
index 000000000..951b326df
--- /dev/null
+++ b/perl-modern-perl/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (900e236c34f5f70361b2c0eed5444de99193a45a6e5d0c97dc30ac9769d87f1aa77dfcc5a79ef0dea0df9d666b25059c0bc95a7ce51f80bc58ce97da48008bc9)
+
+pkgname='perl-modern-perl'
+pkgver='1.20150127'
+pkgrel='1'
+pkgdesc='enable all of the features of Modern Perl with one import'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl-io'
+ 'perl-io'
+ 'perl-autodie>=2.22'
+ 'perl>=5.010')
+makedepends=(
+ 'perl-module-build>=0.28'
+ 'perl-test-simple>=0.98'
+ 'perl-extutils-makemaker'
+ 'perl-module-build>=0.28')
+url='https://metacpan.org/release/Modern-Perl'
+_distdir="Modern-Perl-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/${_distdir}.tar.gz")
+sha512sums=('e57a0542937fccc1dfff37bd08a1f2d80725548beddb3439811697de3dc9ca4cb80e4ca96e383ffcdc2d3ec2e9fb6dfe167df95fd974d75a17b5228b7962e1c3')
+
+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
+}