[arch-commits] CVS update of extra/lib/perl-io-socket-ssl (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 20:09:43 UTC 2007
Date: Saturday, September 1, 2007 @ 16:09:43
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-io-socket-ssl
Modified: PKGBUILD (1.4 -> 1.5)
upgpkg: perl-io-socket-ssl 1.08-1
Use universal perl methods
----------+
PKGBUILD | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
Index: extra/lib/perl-io-socket-ssl/PKGBUILD
diff -u extra/lib/perl-io-socket-ssl/PKGBUILD:1.4 extra/lib/perl-io-socket-ssl/PKGBUILD:1.5
--- extra/lib/perl-io-socket-ssl/PKGBUILD:1.4 Sun May 28 06:19:46 2006
+++ extra/lib/perl-io-socket-ssl/PKGBUILD Sat Sep 1 16:09:43 2007
@@ -1,31 +1,34 @@
-# $Id: PKGBUILD,v 1.4 2006/05/28 10:19:46 notz Exp $
+# $Id: PKGBUILD,v 1.5 2007/09/01 20:09:43 jgc Exp $
# Maintainer: Kevin Piche <kevin at archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-io-socket-ssl
-pkgver=0.97
+pkgver=1.08
pkgrel=1
-pkgdesc="Perl Module: Nearly transparent SSL encapsulation for IO::Socket::INET."
+pkgdesc="Perl/CPAN IO::Socket::SSL module: Nearly transparent SSL encapsulation for IO::Socket::INET."
arch=(i686 x86_64)
-url="http://search.cpan.org/~behroozi/IO-Socket-SSL-$pkgver"
+license=('GPL' 'PerlArtistic')
+url="http://search.cpan.org/dist/IO-Socket-SSL"
depends=('perl-net-ssleay')
-source=(http://www.cpan.org/authors/id/B/BE/BEHROOZI/IO-Socket-SSL-$pkgver.tar.gz)
-md5sums=('34562e9475de132faa0f14ca2be053a5')
+options=(!emptydirs)
replaces=('io-socket-ssl')
provides=('io-socket-ssl')
+source=(http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-$pkgver.tar.gz)
+md5sums=('55b6fae2b0e2163c26847106c2abdd07')
build() {
cd $startdir/src/IO-Socket-SSL-$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.7, change sed line too
- /bin/sed -i "s:5.8.7:current:g" Makefile
- /usr/bin/make || return 1
- /usr/bin/make install DESTDIR=$startdir/pkg
+ # 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, .packlist and empty dirs.
- /bin/rm -rf $startdir/pkg/usr/lib/perl5/current
- /bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
+ # 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