[arch-commits] Commit in perl-b-hooks-endofscope/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Sat Mar 12 11:27:23 UTC 2016


    Date: Saturday, March 12, 2016 @ 12:27:23
  Author: spupykin
Revision: 166324

upgpkg: perl-b-hooks-endofscope 0.15-1

upd

Modified:
  perl-b-hooks-endofscope/trunk/PKGBUILD

----------+
 PKGBUILD |   46 +++++++++++++++-------------------------------
 1 file changed, 15 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-12 11:22:03 UTC (rev 166323)
+++ PKGBUILD	2016-03-12 11:27:23 UTC (rev 166324)
@@ -5,53 +5,37 @@
 
 pkgname="perl-b-hooks-endofscope"
 _cpanname="B-Hooks-EndOfScope"
-pkgver=0.14
+pkgver=0.15
 pkgrel=1
 pkgdesc="Execute code after a scope finished compilation"
 arch=("any")
 license=("PerlArtistic" "GPL")
 options=("!emptydirs")
-depends=(
-	"perl-module-implementation"
-	"perl-module-runtime"
-	"perl-sub-exporter"
-	"perl-sub-exporter-progressive"
-	"perl-try-tiny"
-	"perl-variable-magic>=0.34"
-	"perl>=5.5.0"
-)
-url="http://search.cpan.org/~bobtfish/$_cpanname-$pkgver/"
-source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_cpanname-$pkgver.tar.gz")
-md5sums=("6cdaaa88a39054cd13aacad7bd2171da")
+depends=("perl-module-implementation"
+	 "perl-module-runtime"
+	 "perl-sub-exporter"
+	 "perl-sub-exporter-progressive"
+	 "perl-try-tiny"
+	 "perl-variable-magic>=0.34"
+	 "perl>=5.5.0")
+url="http://search.cpan.org/~bobtfish/B-Hooks-EndOfScope-$pkgver/"
+source=("http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-$pkgver.tar.gz")
+md5sums=('61dd64e3a05ffb06fee9bee3211d16b8')
 
-# Function to change to the working directory and set
-# environment variables to override undesired options.
-prepareEnvironment() {
-	cd "$srcdir/$_cpanname-$pkgver"
-	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
-}
-md5sums=('9380361535fdade817fa5544df579f31')
-
 build() {
-	prepareEnvironment
+	cd $srcdir/B-Hooks-EndOfScope-$pkgver
 	/usr/bin/perl Makefile.PL
 	make
 }
 
 check() {
-	prepareEnvironment
+	cd $srcdir/B-Hooks-EndOfScope-$pkgver
 	make test
 }
 
 package() {
-	prepareEnvironment
-	make install
-
+	cd $srcdir/B-Hooks-EndOfScope-$pkgver
+	make install DESTDIR=$pkgdir
 	# Remove "perllocal.pod" and ".packlist".
 	find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
 }



More information about the arch-commits mailing list