summaryrefslogtreecommitdiff
path: root/perl-class-c3/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-08 12:49:48 +0200
committerErich Eckner <git@eckner.net>2017-08-08 12:49:48 +0200
commitad79b6f7e513127221c05f5ed780a0b8f78255c2 (patch)
tree789480f328d8a6d21bfdb856b2d8e4bfecfe0969 /perl-class-c3/PKGBUILD
parent12980d32219523f650f7142d15a56c7d89a68999 (diff)
downloadarchlinuxewe-ad79b6f7e513127221c05f5ed780a0b8f78255c2.tar.xz
perl-class-c3 neu
Diffstat (limited to 'perl-class-c3/PKGBUILD')
-rw-r--r--perl-class-c3/PKGBUILD70
1 files changed, 70 insertions, 0 deletions
diff --git a/perl-class-c3/PKGBUILD b/perl-class-c3/PKGBUILD
new file mode 100644
index 000000000..042dd109c
--- /dev/null
+++ b/perl-class-c3/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (2187f3ca33d7c791f08a9ab8c3893497ec9caa377e13a9f4565f67f0abb693a7e3c3edb2792f2bae0865f195eb47b422ea736d98c72a803ee24cecfcdfa2829f)
+
+pkgname='perl-class-c3'
+pkgver='0.33'
+pkgrel='1'
+pkgdesc='A pragma to use the C3 method resolution order algorithm'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.6.0'
+ 'perl-algorithm-c3>=0.07'
+ 'perl-scalar-list-utils'
+)
+makedepends=(
+ 'perl-extutils-makemaker'
+ 'perl-test-simple>=0.47'
+)
+url='https://metacpan.org/release/Class-C3'
+_distdir="Class-C3-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/H/HA/HAARG/${_distdir}.tar.gz")
+sha512sums=('f72cff75c1222d7b42041b44b5ec7c8ff79e8c53f84ff11e1976a69dcde49093c52e66ebc19ce72f70c99332a9528a07a7d9eab7c74f5b6ce77464434b36cd7b')
+
+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
+}