[arch-commits] Commit in perl-sub-override/repos (2 files)
Fabio Castelli
muflone at archlinux.org
Tue Apr 3 23:50:15 UTC 2018
Date: Tuesday, April 3, 2018 @ 23:50:15
Author: muflone
Revision: 314041
archrelease: copy trunk to community-testing-any
Added:
perl-sub-override/repos/community-testing-any/
perl-sub-override/repos/community-testing-any/PKGBUILD
(from rev 314040, perl-sub-override/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: perl-sub-override/repos/community-testing-any/PKGBUILD (from rev 314040, perl-sub-override/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-04-03 23:50:15 UTC (rev 314041)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgname=perl-sub-override
+_perl_namespace=Sub
+_perl_module=Override
+pkgver=0.09
+pkgrel=2
+pkgdesc="Perl extension for easily overriding subroutines"
+arch=('any')
+url="https://metacpan.org/release/${_perl_namespace}-${_perl_module}"
+license=('PerlArtistic' 'GPL')
+makedepends=('perl-test-fatal')
+depends=('perl')
+source=("https://www.cpan.org/modules/by-module/${_perl_namespace}/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz")
+sha256sums=('939a67c1f729968e0cc81b74958db750e1bdb7c020bee1a263332f422c2e25b5')
+options=('!emptydirs')
+
+build() {
+ cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ perl Makefile.PL
+ make
+}
+
+check() {
+ cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ make test
+}
+
+package() {
+ cd "${_perl_namespace}-${_perl_module}-${pkgver}"
+ unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+ make pure_install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
+ # Delete unuseful files
+ find "${pkgdir}" -name '.packlist' -delete
+}
More information about the arch-commits
mailing list