summaryrefslogtreecommitdiff
path: root/perl-string-format
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-14 15:56:06 +0200
committerErich Eckner <git@eckner.net>2017-08-14 15:56:06 +0200
commit4b3fd9dccb0035358d58c7948354c0174d22d93e (patch)
tree6937f25e3c078fa17a05c93aa242b41b9280c3f5 /perl-string-format
parent2e06cc22aab70d9fa8a4bbd476f6c86b85fe39fd (diff)
downloadarchlinuxewe.git.save-4b3fd9dccb0035358d58c7948354c0174d22d93e.tar.xz
perl-string-format neu
Diffstat (limited to 'perl-string-format')
-rw-r--r--perl-string-format/PKGBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/perl-string-format/PKGBUILD b/perl-string-format/PKGBUILD
new file mode 100644
index 00000000..e753e9c4
--- /dev/null
+++ b/perl-string-format/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (ef0b8d9e9ed5e7aec93f3e72d031ac7ee7fb4246e042c09b06bbdcecfbc0e3c879d26484951ecde4eb4b299510817c6aead5d93f6a73544b768ed6467f4108fc)
+
+pkgname='perl-string-format'
+pkgver='1.17'
+pkgrel='1'
+pkgdesc='sprintf-like string formatting capabilities with arbitrary format definitions'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl-test-simple'
+)
+makedepends=(
+ 'perl-extutils-makemaker'
+)
+url='https://metacpan.org/release/String-Format'
+_distdir="String-Format-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/D/DA/DARREN/${_distdir}.tar.gz")
+sha512sums=('9d003483858d1681d6955b8620cbba649fe8b92c318b29c5dd684857d81320cb35fbb50e537545d1dfd1e3abc9f94acf9263b82442759e55fd686bd6e907a9f6')
+
+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
+}