[arch-commits] Commit in perl-exception-class/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Sun May 25 13:53:24 UTC 2014


    Date: Sunday, May 25, 2014 @ 15:53:24
  Author: bpiotrowski
Revision: 111839

upgpkg: perl-exception-class 1.38-1

use genpkg to generate the PKGBUILD

Modified:
  perl-exception-class/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-05-25 13:46:07 UTC (rev 111838)
+++ PKGBUILD	2014-05-25 13:53:24 UTC (rev 111839)
@@ -4,31 +4,36 @@
 # Contributor: Caleb Cushing <xenoterracide at gmail.com>
 
 pkgname=perl-exception-class
-_cpanname="Exception-Class"
-pkgver=1.37
+pkgver=1.38
 pkgrel=1
-pkgdesc="A module that allows you to declare real exception classes in Perl"
-arch=('any')
-url="http://search.cpan.org/dist/$_cpanname"
-license=('PerlArtistic' 'GPL')
-depends=('perl>=5.5.0' 'perl-class-data-inheritable>=0.02' 'perl-devel-stacktrace>=1.20')
-options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_cpanname-$pkgver.tar.gz")
-md5sums=('9953d120112d971f1deafdba9dc15aa7')
+pkgdesc='A module that allows you to declare real exception classes in Perl'
+arch=(any)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+depends=('perl>=5.8.1' 'perl-class-data-inheritable>=0.02'
+         'perl-devel-stacktrace>=1.20')
+url=https://metacpan.org/release/Exception-Class
+source=("http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Exception-Class-$pkgver.tar.gz")
+md5sums=(4d7203a95893449f53ccacb385981569)
+_ddir=Exception-Class-$pkgver
 
 build() {
-	cd $_cpanname-$pkgver
-	perl Makefile.PL PERL_MM_USE_DEFAULT=1 INSTALLDIRS=vendor
-	make
+  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 $_cpanname-$pkgver
-	make test
+  cd "$srcdir/$_ddir"
+  export PERL_MM_USE_DEFAULT=1
+  unset PERL5LIB
+  make test
 }
 
-packjjage() {
-	cd $_cpanname-$pkgver
-	make install
-	find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+package() {
+  cd "$srcdir/$_ddir"
+  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
 }




More information about the arch-commits mailing list