Date: Saturday, August 26, 2017 @ 10:27:47 Author: foutrelis Revision: 253693
archrelease: copy trunk to community-staging-any Added: perl-test-without-module/repos/community-staging-any/ perl-test-without-module/repos/community-staging-any/PKGBUILD (from rev 253692, perl-test-without-module/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: perl-test-without-module/repos/community-staging-any/PKGBUILD (from rev 253692, perl-test-without-module/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2017-08-26 10:27:47 UTC (rev 253693) @@ -0,0 +1,43 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> +# Contributor: Piotr Rogoża <piotr dot r dot public at gmail dot com> + +pkgname=perl-test-without-module +pkgver=0.20 +pkgrel=3 + +pkgdesc='Test::Without::Module - Test fallback behaviour in absence of modules' +url="http://search.cpan.org/dist/Test-Without-Module/" +arch=('any') +license=('GPL' 'PerlArtistic') + +depends=('perl') +makedepends=('perl') +checkdepends=('perl-file-slurp') + +source=("http://search.cpan.org/CPAN/authors/id/C/CO/CORION/Test-Without-Module-$pkgver.tar.gz") + +sha256sums=('8e9aeb7c32a6c6d0b8a93114db2a8c072721273a9d9a2dd4f9ca86cfd28aa524') + +options=(!emptydirs) + +build() { + cd Test-Without-Module-"$pkgver" + + # 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="" PERL_MB_OPT="" MODULEBUILDRC=/dev/null + + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd Test-Without-Module-"$pkgver" + make test +} + +package() { + cd Test-Without-Module-"$pkgver" + make install DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +}