diff options
author | Erich Eckner <git@eckner.net> | 2017-09-07 12:44:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-07 12:44:58 +0200 |
commit | 37677e372150c2a72146852d43a3fe33da2d0c29 (patch) | |
tree | d8fc0e842d02370238b8ba299cb6d171f9c69a42 /perl-module-list | |
parent | 07cd9d60519d482d52dac7376718f1a18e389269 (diff) | |
download | archlinuxewe.git.save-37677e372150c2a72146852d43a3fe33da2d0c29.tar.xz |
perl-module-list neu
Diffstat (limited to 'perl-module-list')
-rw-r--r-- | perl-module-list/PKGBUILD | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/perl-module-list/PKGBUILD b/perl-module-list/PKGBUILD new file mode 100644 index 00000000..5f0d0873 --- /dev/null +++ b/perl-module-list/PKGBUILD @@ -0,0 +1,78 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Generator : neuesPerlPaket (97841193a0046800a1ed3cebc0718afe92066b6f1190519a623e66830c355902620a8d956439b9825c773ea4af1a5a3ff917dc0d9a50bafb588ca09da5980c74) + +pkgname='perl-module-list' +pkgver='0.004' +pkgrel='1' +pkgdesc='module `directory'"'"' listing' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=( + 'perl>=5.6.0' + 'perl-carp' + 'perl-exporter' + 'perl-io>=1.03' + 'perl-parent' + 'perl-pathtools' +) +makedepends=( + 'perl>=5.6.0' + 'perl-module-build' + 'perl-test-simple' +) +checkdepends=( + 'perl-test-pod' + 'perl-test-pod-coverage' +) +url='https://metacpan.org/release/Module-List' +_distdir="Module-List-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/${_distdir}.tar.gz") +sha512sums=('ce804471b1e6cae2c1033d9bb8dbd37bec6a3b160d42dc621615d406a3a721ac527507fcf5be93c507c33e45fe621ebbcb048a5a6f7ba367b81783e458a59190') + +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 +} |