summaryrefslogtreecommitdiff
path: root/perl-config-inifiles/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-08 14:26:16 +0200
committerErich Eckner <git@eckner.net>2017-08-08 14:26:16 +0200
commita7625044f40ca4548c7318760a81e18affb013bd (patch)
treeb0494d8578069b4944c719e83d6df577bd5ef25f /perl-config-inifiles/PKGBUILD
parentfb7c153ae5abc6d6ab145a63fcc9f54780b9658d (diff)
downloadarchlinuxewe.git.save-a7625044f40ca4548c7318760a81e18affb013bd.tar.xz
perl-config-inifiles neu
Diffstat (limited to 'perl-config-inifiles/PKGBUILD')
-rw-r--r--perl-config-inifiles/PKGBUILD81
1 files changed, 81 insertions, 0 deletions
diff --git a/perl-config-inifiles/PKGBUILD b/perl-config-inifiles/PKGBUILD
new file mode 100644
index 00000000..7a5dffce
--- /dev/null
+++ b/perl-config-inifiles/PKGBUILD
@@ -0,0 +1,81 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (2187f3ca33d7c791f08a9ab8c3893497ec9caa377e13a9f4565f67f0abb693a7e3c3edb2792f2bae0865f195eb47b422ea736d98c72a803ee24cecfcdfa2829f)
+
+pkgname='perl-config-inifiles'
+pkgver='2.94'
+pkgrel='1'
+pkgdesc='A module for reading .ini-style configuration files.'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.8.0'
+ 'perl-carp'
+ 'perl-file-temp'
+ 'perl-io-stringy'
+ 'perl-scalar-list-utils>=1.33'
+)
+makedepends=(
+ 'perl>=1.01'
+ 'perl-base'
+ 'perl-exporter'
+ 'perl-extutils-makemaker'
+ 'perl-file-temp'
+ 'perl-io'
+ 'perl-lib'
+ 'perl-module-build>=0.28'
+ 'perl-pathtools'
+ 'perl-scalar-list-utils'
+ 'perl-test-simple'
+)
+url='https://metacpan.org/release/Config-IniFiles'
+_distdir="Config-IniFiles-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/${_distdir}.tar.gz")
+sha512sums=('9ca9950f31a00bde580dc73b5120971070aa053f36f9a0ee29532b17b9a070de8ad3184631427ad442dbcbe087a9680366849b5e10f264e20694ddade7e3ca7c')
+
+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
+}