summaryrefslogtreecommitdiff
path: root/perl-nodejs-util
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-07 12:32:33 +0200
committerErich Eckner <git@eckner.net>2017-09-07 12:32:33 +0200
commit9c6271e2a12507019bb32c51ce699e1896df37dc (patch)
tree5cfbb47b7fe3e75ba2e67cbfcf81cddad519bd81 /perl-nodejs-util
parent3e31eb432882e8bad296fcd4607e1dbd1556d2dd (diff)
downloadarchlinuxewe-9c6271e2a12507019bb32c51ce699e1896df37dc.tar.xz
perl-nodejs-util new
Diffstat (limited to 'perl-nodejs-util')
-rw-r--r--perl-nodejs-util/PKGBUILD82
1 files changed, 82 insertions, 0 deletions
diff --git a/perl-nodejs-util/PKGBUILD b/perl-nodejs-util/PKGBUILD
new file mode 100644
index 000000000..4d7f287b0
--- /dev/null
+++ b/perl-nodejs-util/PKGBUILD
@@ -0,0 +1,82 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (97841193a0046800a1ed3cebc0718afe92066b6f1190519a623e66830c355902620a8d956439b9825c773ea4af1a5a3ff917dc0d9a50bafb588ca09da5980c74)
+
+pkgname='perl-nodejs-util'
+pkgver='0.006'
+pkgrel='1'
+pkgdesc='Utilities related to Node.js'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.10.1'
+ 'perl-exporter'
+ 'perl-file-which'
+ 'perl-ipc-system-options>=0.27'
+)
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-simple'
+)
+checkdepends=(
+ 'perl-pod-coverage-trustpod'
+ 'perl-test-pod'
+ 'perl-test-pod-coverage'
+)
+url='https://metacpan.org/release/Nodejs-Util'
+_distdir="Nodejs-Util-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz")
+sha512sums=('a4114a4d63ddcb394cd3b939829e6d11a9a4bf0c711b7a6d6e50890fb4390ae217960894eac46920f07092574f18f9a6e09b29bea03c9fd2fa201c9614115910')
+
+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}"
+
+ export AUTHOR_TESTING=1
+ export RELEASE_TESTING=1
+
+ # 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
+}