[arch-commits] CVS update of extra/lib/perl-net-ssleay (PKGBUILD)

Kevin Piche kevin at archlinux.org
Sun Jan 13 03:57:26 UTC 2008


    Date: Saturday, January 12, 2008 @ 22:57:26
  Author: kevin
    Path: /home/cvs-extra/extra/lib/perl-net-ssleay

Modified: PKGBUILD (1.6 -> 1.7)

upgpkg: perl-net-ssleay 1.30-1
Updated for new perl policy


----------+
 PKGBUILD |   25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)


Index: extra/lib/perl-net-ssleay/PKGBUILD
diff -u extra/lib/perl-net-ssleay/PKGBUILD:1.6 extra/lib/perl-net-ssleay/PKGBUILD:1.7
--- extra/lib/perl-net-ssleay/PKGBUILD:1.6	Sat Sep  1 15:52:37 2007
+++ extra/lib/perl-net-ssleay/PKGBUILD	Sat Jan 12 22:57:26 2008
@@ -1,30 +1,27 @@
-# $Id: PKGBUILD,v 1.6 2007/09/01 19:52:37 jgc Exp $
+# $Id: PKGBUILD,v 1.7 2008/01/13 03:57:26 kevin Exp $
 # Maintainer: eric <eric at archlinux.org>
 # Contributor: Manolis Tzanidakis
 
 pkgname=perl-net-ssleay
+_realname=Net_SSLeay.pm
 pkgver=1.30
 pkgrel=1
-pkgdesc="Perl Module: Extension for using OpenSSL."
+pkgdesc="Perl extension for using OpenSSL"
 arch=(i686 x86_64)
-url="http://search.cpan.org/dist/Net-SSLeay.pm"
-depends=('perl' 'openssl')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl>=5.10.0' 'openssl')
 options=(!emptydirs)
 replaces=('net-ssleay')
 provides=('net-ssleay')
-source=(http://www.cpan.org/authors/id/F/FL/FLORA/Net_SSLeay.pm-$pkgver.tar.gz)
+source=(http://www.cpan.org/authors/id/F/FL/FLORA/${_realname}-$pkgver.tar.gz)
 md5sums=('b0cd6c1681bbc0695d81be5cd852d1d0')
 
 build() {
-  cd $startdir/src/Net_SSLeay.pm-$pkgver
-  # Force module installation to "current" perl directories.
-  eval `perl -V:archname`
-  perl Makefile.PL -- \
-      INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
-      INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
-      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
-  make || return 1
-  make install DESTDIR=${startdir}/pkg
+  cd $startdir/src/${_realname}-$pkgver
+  # install module in vendor directories.
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor || return 1
+  make  || return 1
+  make install DESTDIR=${startdir}/pkg || return 1
 
   # remove perllocal.pod and .packlist
   find ${startdir}/pkg -name perllocal.pod -delete




More information about the arch-commits mailing list