From a7625044f40ca4548c7318760a81e18affb013bd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 8 Aug 2017 14:26:16 +0200 Subject: perl-config-inifiles neu --- perl-config-inifiles/PKGBUILD | 81 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 perl-config-inifiles/PKGBUILD (limited to 'perl-config-inifiles/PKGBUILD') 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 +# 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 +} -- cgit v1.2.3-70-g09d2