[arch-commits] CVS update of extra/lib/perl-net-ssleay (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 19:52:37 UTC 2007
Date: Saturday, September 1, 2007 @ 15:52:37
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-net-ssleay
Modified: PKGBUILD (1.5 -> 1.6)
upgpkg: perl-net-ssleay 1.30-1
Use universal perl methods
----------+
PKGBUILD | 36 ++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)
Index: extra/lib/perl-net-ssleay/PKGBUILD
diff -u extra/lib/perl-net-ssleay/PKGBUILD:1.5 extra/lib/perl-net-ssleay/PKGBUILD:1.6
--- extra/lib/perl-net-ssleay/PKGBUILD:1.5 Thu Jul 6 17:01:47 2006
+++ extra/lib/perl-net-ssleay/PKGBUILD Sat Sep 1 15:52:37 2007
@@ -1,29 +1,33 @@
-# $Id: PKGBUILD,v 1.5 2006/07/06 21:01:47 andyrtr Exp $
+# $Id: PKGBUILD,v 1.6 2007/09/01 19:52:37 jgc Exp $
# Maintainer: eric <eric at archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-net-ssleay
-pkgver=1.25
-pkgrel=2
+pkgver=1.30
+pkgrel=1
pkgdesc="Perl Module: Extension for using OpenSSL."
arch=(i686 x86_64)
-url="http://search.cpan.org/~sampo/Net-SSLeay.pm-$pkgver"
-depends=('perl>=5.8.4-1' 'openssl')
-source=(http://www.cpan.org/authors/id/S/SA/SAMPO/Net_SSLeay.pm-$pkgver.tar.gz)
-md5sums=('87de8a06802fbb63c7c85e89eedbe139')
+url="http://search.cpan.org/dist/Net-SSLeay.pm"
+depends=('perl' '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)
+md5sums=('b0cd6c1681bbc0695d81be5cd852d1d0')
build() {
cd $startdir/src/Net_SSLeay.pm-$pkgver
- /usr/bin/perl Makefile.PL
- # ugly hack to make install location
- # compatible with newer versions of perl.
- # NOTE: if perl version changes from 5.8.5, change sed line too
- /bin/sed -i "s:5.8.8:current:g" Makefile
- /usr/bin/make || return 1
- /usr/bin/make install DESTDIR=$startdir/pkg
- /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
- /bin/rm $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/Net/SSLeay/.packlist
+ # 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
+
+ # remove perllocal.pod and .packlist
+ find ${startdir}/pkg -name perllocal.pod -delete
+ find ${startdir}/pkg -name .packlist -delete
}
# vim: ts=2 sw=2 et ft=sh
More information about the arch-commits
mailing list