summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-24 16:31:24 +0200
committerErich Eckner <git@eckner.net>2016-05-24 16:31:24 +0200
commitc971e804aed5e2807bc6a4ec1863808f22ea4f08 (patch)
treecaa8b0a0fe6c34c0228af8f06f895ce0bf93075d
parent64dd4b8f9b14064a9cd5635a8d03022b6e38f4d2 (diff)
downloadarchlinuxewe-c971e804aed5e2807bc6a4ec1863808f22ea4f08.tar.xz
perl-moox-types-mooselike-numeric neu
-rw-r--r--perl-moox-types-mooselike-numeric/PKGBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/perl-moox-types-mooselike-numeric/PKGBUILD b/perl-moox-types-mooselike-numeric/PKGBUILD
new file mode 100644
index 000000000..e1069ebf0
--- /dev/null
+++ b/perl-moox-types-mooselike-numeric/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (2234e1f408ad7a30313e9b3c153aadde5d1eb68bc0adcb75ee52d2927ebb42e5676317181b669be39442d556f1e0c24b108d6d45021c1dbc41e2f79c705c7ca7)
+
+pkgname='perl-moox-types-mooselike-numeric'
+pkgver='1.02'
+pkgrel='1'
+pkgdesc='Moo types for numbers'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl-moox-types-mooselike>=0.23')
+makedepends=(
+ 'perl-extutils-makemaker'
+ 'perl-test-fatal>=0.003'
+ 'perl-test-simple>=0.96')
+url='https://metacpan.org/release/MooX-Types-MooseLike-Numeric'
+_distdir="MooX-Types-MooseLike-Numeric-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/M/MA/MATEU/${_distdir}.tar.gz")
+sha512sums=('d1df24ea1a9a59c0ffeb828c541a2cab562b2e95582991ca7b594de200ccc725309b0585adb3392b9c746d34bca243ed606e1a835e07a4dd91c5e3eb84050dc3')
+
+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
+}