[arch-commits] Commit in cpanminus/trunk (PKGBUILD)

Florian Pritz bluewind at archlinux.org
Sun May 20 21:31:52 UTC 2018


    Date: Sunday, May 20, 2018 @ 21:31:51
  Author: bluewind
Revision: 325655

upgpkg: cpanminus 1.7044-1

upstream update

Modified:
  cpanminus/trunk/PKGBUILD

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 38 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-20 21:31:47 UTC (rev 325654)
+++ PKGBUILD	2018-05-20 21:31:51 UTC (rev 325655)
@@ -1,30 +1,46 @@
-# $Id$
-# Maintainer: 
+# Maintainer: Florian Pritz <bluewind at xinu.at>
 
 pkgname=cpanminus
-pkgver=1.7043
-pkgrel=2
-pkgdesc='Get, unpack, build and install modules from CPAN'
-arch=('any')
-url="https://metacpan.org/release/App-cpanminus"
-license=('PerlArtistic' 'GPL')
-depends=('perl')
-options=('!emptydirs')
+pkgver=1.7044
+pkgrel=1
+pkgdesc='get, unpack, build and install modules from CPAN'
+arch=(any)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+depends=('perl>=5.8.1')
+provides=("perl-app-cpanminus=$pkgver")
+url=https://metacpan.org/release/App-cpanminus
 source=("http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-$pkgver.tar.gz")
-sha1sums=('99253b7016f267abf0b4d0d528c45c3a81f36c9a')
+md5sums=(6e76f94dced6d4672686a30d16f8e890)
+sha512sums=(85e88de8fbefabdfd84fe8aeaa8294d58d63e27276cd6d8b8dfc5dc4cd6c30c12f5859f30e4930842d6d06af50c88d71358dee49c93821234c811aa39de822d7)
+_ddir="App-cpanminus-$pkgver"
 
-build() {
-  cd App-cpanminus-$pkgver
-  perl Makefile.PL INSTALLDIRS=vendor
+build()
+(
+  cd "$srcdir/$_ddir"
+  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+  unset PERL5LIB PERL_MM_OPT
+  /usr/bin/perl Makefile.PL
   make
-}
+)
 
-check() {
-  cd App-cpanminus-$pkgver
+check()
+(
+  cd "$srcdir/$_ddir"
+  export PERL_MM_USE_DEFAULT=1
+  unset PERL5LIB
   make test
-}
+)
 
-package() {
-  cd App-cpanminus-$pkgver
-  make DESTDIR="$pkgdir" install
-}
+package()
+(
+  cd "$srcdir/$_ddir"
+  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+)
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list