[arch-commits] CVS update of extra/lib/perl-uri (PKGBUILD)
Kevin Piche
kevin at archlinux.org
Wed Jan 2 05:02:31 UTC 2008
Date: Wednesday, January 2, 2008 @ 00:02:31
Author: kevin
Path: /home/cvs-extra/extra/lib/perl-uri
Modified: PKGBUILD (1.6 -> 1.7)
upgpkg: perl-uri 1.35-3
Updated for new perl policy
----------+
PKGBUILD | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
Index: extra/lib/perl-uri/PKGBUILD
diff -u extra/lib/perl-uri/PKGBUILD:1.6 extra/lib/perl-uri/PKGBUILD:1.7
--- extra/lib/perl-uri/PKGBUILD:1.6 Sat Sep 1 17:32:15 2007
+++ extra/lib/perl-uri/PKGBUILD Wed Jan 2 00:02:31 2008
@@ -1,31 +1,28 @@
-# $Id: PKGBUILD,v 1.6 2007/09/01 21:32:15 jgc Exp $
+# $Id: PKGBUILD,v 1.7 2008/01/02 05:02:31 kevin Exp $
# Maintainer: eric <eric at archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-uri
+_realname=URI
pkgver=1.35
-pkgrel=2
+pkgrel=3
pkgdesc="Perl Module: form Resource Identifiers (absolute and relative)"
arch=(i686 x86_64)
license=('PerlArtistic')
-url="http://search.cpan.org/dist/URI"
-depends=('perl')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl>=5.10.0')
options=(!emptydirs)
-source=(http://www.cpan.org/authors/id/G/GA/GAAS/URI-$pkgver.tar.gz)
+source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-$pkgver.tar.gz)
replaces=('uri')
provides=('uri')
md5sums=('1a933b1114c41a25587ee59ba8376f7c')
build() {
- cd $startdir/src/URI-$pkgver
- # Force module installation to "current" perl directories.
- eval `perl -V:archname`
- PERL_MM_USE_DEFAULT=1 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 MAN1EXT=1p MAN3EXT=3pm || return 1
+ make install MAN1EXT=1p MAN3EXT=3pm 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