[arch-commits] Commit in perl-test-without-module/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat May 25 09:19:42 UTC 2019


    Date: Saturday, May 25, 2019 @ 09:19:41
  Author: foutrelis
Revision: 470106

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 470105, 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 470105, perl-test-without-module/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-05-25 09:19:41 UTC (rev 470106)
@@ -0,0 +1,43 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Piotr Rogoża <piotr dot r dot public at gmail dot com>
+
+pkgname=perl-test-without-module
+pkgver=0.20
+pkgrel=5
+
+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
+}



More information about the arch-commits mailing list