diff options
author | Erich Eckner <git@eckner.net> | 2017-09-07 14:22:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-07 14:22:13 +0200 |
commit | 58f70d9a15e2bd58b3dee2815060d3b577b53e3d (patch) | |
tree | 614dc0752895b007ab528b244ff18b65e51748b9 | |
parent | e71c73115591918b4ebf9fd8c693bc349ef88e00 (diff) | |
download | archlinuxewe.git.save-58f70d9a15e2bd58b3dee2815060d3b577b53e3d.tar.xz |
perl-gen-test-rinci-funcresult neu
-rw-r--r-- | perl-gen-test-rinci-funcresult/PKGBUILD | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/perl-gen-test-rinci-funcresult/PKGBUILD b/perl-gen-test-rinci-funcresult/PKGBUILD new file mode 100644 index 00000000..668049e4 --- /dev/null +++ b/perl-gen-test-rinci-funcresult/PKGBUILD @@ -0,0 +1,86 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Generator : neuesPerlPaket (97841193a0046800a1ed3cebc0718afe92066b6f1190519a623e66830c355902620a8d956439b9825c773ea4af1a5a3ff917dc0d9a50bafb588ca09da5980c74) + +pkgname='perl-gen-test-rinci-funcresult' +pkgver='0.06' +pkgrel='1' +pkgdesc='Generate a test function for a function' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=( + 'perl>=5.10.1' + 'perl-carp' + 'perl-data-dump-oneline' + 'perl-exporter' + 'perl-test-simple>=0.98' +) +makedepends=( + 'perl' + 'perl-capture-tiny' + 'perl-extutils-makemaker' + 'perl-file-slurper' + 'perl-file-temp' + 'perl-io' + 'perl-pathtools' + 'perl-test-simple>=0.98' +) +checkdepends=( + 'perl-pod-coverage-trustpod' + 'perl-test-pod' + 'perl-test-pod-coverage' +) +url='https://metacpan.org/release/Gen-Test-Rinci-FuncResult' +_distdir="Gen-Test-Rinci-FuncResult-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz") +sha512sums=('51146d04fc74dc59c63951dab645c297290f3cfc4b541d30838d98c0c65fa63c5f0d4a8f24529632e0bd1cef6d0d741848cc528935248d33c06f249efae6cf86') + +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}" + + export AUTHOR_TESTING=1 + export RELEASE_TESTING=1 + + # 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 +} |