summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-16 13:56:23 +0200
committerErich Eckner <git@eckner.net>2020-06-16 13:56:23 +0200
commit6ab0e68249d424ac89e19977eb368ac8a6573a0e (patch)
tree663d8f4a2af7e0e08a492e006878e579b6bd85e3
parentd7c0da296513eed815803407a9939295f2d10bae (diff)
downloadarchlinuxewe-6ab0e68249d424ac89e19977eb368ac8a6573a0e.tar.xz
perl-string-js neu
-rw-r--r--perl-string-js/PKGBUILD74
1 files changed, 74 insertions, 0 deletions
diff --git a/perl-string-js/PKGBUILD b/perl-string-js/PKGBUILD
new file mode 100644
index 000000000..7cf16d6cc
--- /dev/null
+++ b/perl-string-js/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (d3b8f856efc23c99656b994aa72658ac963819754afaf13b4ff51112b3b57c06d21420dc7b9785686dc52d8001593e3bd56268af1bc970e123ce908790bf7852)
+
+pkgname='perl-string-js'
+pkgver='0.03'
+pkgrel='1'
+pkgdesc='Utilities for Javascript string literal representation'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-exception'
+ 'perl-test-simple>=0.98'
+)
+depends=(
+ 'perl>=5.10.1'
+ 'perl-exporter'
+ 'perl-json-maybexs'
+)
+url='https://metacpan.org/release/String-JS'
+_distdir="String-JS-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz")
+sha512sums=('a477ac22ab4dc6cce1e10005c802a1020f8f94ea976d88d29bda0005272fde214f013e7b2109e70eb01ee931c01038c4546264b6b93ae8a27b498b4e7b0e3151')
+
+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
+}