diff options
author | Erich Eckner <git@eckner.net> | 2017-09-22 00:16:40 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-22 00:16:40 +0200 |
commit | 3458cabdecaeeeba51c9589160bc79eb0741116f (patch) | |
tree | 7faa88e97b430827eaefbe4131db858c0e17dd39 /perl-test-fixme | |
parent | 84351b1cb83634c0c7b74f303c42eb99c54181fd (diff) | |
download | archlinuxewe-3458cabdecaeeeba51c9589160bc79eb0741116f.tar.xz |
perl-test-fixme neu
Diffstat (limited to 'perl-test-fixme')
-rw-r--r-- | perl-test-fixme/PKGBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/perl-test-fixme/PKGBUILD b/perl-test-fixme/PKGBUILD new file mode 100644 index 000000000..7455a96bf --- /dev/null +++ b/perl-test-fixme/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Generator : neuesPerlPaket (531f4ea05761761b97731706ac717c0b6492abe73967627888b9913e5b55c57b4ee55f1d39b2cbcfadfaa2e5c1487c41151b50bcc321d3ac2202a96e10461201) + +pkgname='perl-test-fixme' +pkgver='0.16' +pkgrel='1' +pkgdesc='Check code for FIXMEs.' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=( + 'perl>=5.6.0' +) +makedepends=( + 'perl>=5.6.0' + 'perl-extutils-makemaker' +) +url='https://metacpan.org/release/Test-Fixme' +_distdir="Test-Fixme-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/${_distdir}.tar.gz") +sha512sums=('3d587abe7c0bd878ddace2e7c05f9b39117ffe3707189181a945d91d60346797f5df71c84e541ae30cd691fdacc06dec4bc9ace7491e797c26aec923a51eeedb') + +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 +} |