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

Johannes Löthberg demize at archlinux.org
Tue Nov 17 17:40:46 UTC 2015


    Date: Tuesday, November 17, 2015 @ 18:40:46
  Author: demize
Revision: 147007

archrelease: copy trunk to community-any

Added:
  perl-test-without-module/repos/community-any/
  perl-test-without-module/repos/community-any/PKGBUILD
    (from rev 147006, perl-test-without-module/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: perl-test-without-module/repos/community-any/PKGBUILD (from rev 147006, perl-test-without-module/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-11-17 17:40:46 UTC (rev 147007)
@@ -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.18
+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=('e2c3360b171d7db518ac39a0e1dcb285c784ea393c11708914a0655d66138c7f')
+
+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