[arch-commits] CVS update of extra/lib/perl-locale-gettext (PKGBUILD)
Kevin Piche
kevin at archlinux.org
Fri Jan 4 03:53:45 UTC 2008
Date: Thursday, January 3, 2008 @ 22:53:45
Author: kevin
Path: /home/cvs-extra/extra/lib/perl-locale-gettext
Modified: PKGBUILD (1.3 -> 1.4)
upgpkg: perl-locale-gettext 1.05-3
Rebuild for new perl and new perl policy
----------+
PKGBUILD | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)
Index: extra/lib/perl-locale-gettext/PKGBUILD
diff -u extra/lib/perl-locale-gettext/PKGBUILD:1.3 extra/lib/perl-locale-gettext/PKGBUILD:1.4
--- extra/lib/perl-locale-gettext/PKGBUILD:1.3 Sat Sep 1 18:00:23 2007
+++ extra/lib/perl-locale-gettext/PKGBUILD Thu Jan 3 22:53:45 2008
@@ -1,28 +1,26 @@
-# $Id: PKGBUILD,v 1.3 2007/09/01 22:00:23 jgc Exp $
+# $Id: PKGBUILD,v 1.4 2008/01/04 03:53:45 kevin Exp $
# Contributor: Mark Rosenstand <mark at borkware.net>
# Maintainer: Paul Mattal <paul at archlinux.org>
+
pkgname=perl-locale-gettext
+_realname=gettext
pkgver=1.05
-pkgrel=2
+pkgrel=3
pkgdesc="Permits access from Perl to the gettext() family of functions."
arch=(i686 x86_64)
license=('GPL' 'PerlArtistic')
-url="http://search.cpan.org/dist/gettext/"
-depends=('gettext' 'perl')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('gettext' 'perl>=5.10.0')
options=(!emptydirs)
-source=(http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-$pkgver.tar.gz)
+source=(http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/${_realname}-${pkgver}.tar.gz)
md5sums=('f3d3f474a1458f37174c410dfef61a46')
build() {
- cd $startdir/src/gettext-$pkgver || return 1
- # 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} || return 1
+ # 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