[arch-commits] CVS update of extra/lib/perl-version (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 19:38:41 UTC 2007
Date: Saturday, September 1, 2007 @ 15:38:41
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-version
Modified: PKGBUILD (1.1 -> 1.2)
upgpkg: perl-version 0.7203-2
Use universal perl methods
----------+
PKGBUILD | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
Index: extra/lib/perl-version/PKGBUILD
diff -u extra/lib/perl-version/PKGBUILD:1.1 extra/lib/perl-version/PKGBUILD:1.2
--- extra/lib/perl-version/PKGBUILD:1.1 Thu May 3 15:54:57 2007
+++ extra/lib/perl-version/PKGBUILD Sat Sep 1 15:38:41 2007
@@ -1,27 +1,31 @@
-# $Id: PKGBUILD,v 1.1 2007/05/03 19:54:57 dale Exp $
+# $Id: PKGBUILD,v 1.2 2007/09/01 19:38:41 jgc Exp $
# Maintainer: Dale Blount <dale at archlinux.org>
# Contributor: Dale Blount <dale at archlinux.org>
pkgname=perl-version
pkgver=0.7203
-pkgrel=1
+pkgrel=2
pkgdesc="Perl extension for Version Objects."
arch=(i686 x86_64)
-depends=(perl glibc)
+license=('GPL' 'PerlArtistic')
+depends=('perl')
+options=(!emptydirs)
url="http://search.cpan.org/dist/version/"
source=(http://search.cpan.org/CPAN/authors/id/J/JP/JPEACOCK/version-$pkgver.tar.gz)
md5sums=('796053989cb6e3ca3fb0c5b4e92cf109')
build() {
cd $startdir/src/version-$pkgver
- eval `perl -V:archname`
+ # 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}
+ 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 DESTDIR=${startdir}/pkg install
- find ${startdir}/pkg -name '.packlist' -exec rm -f {} \;
- find ${startdir}/pkg -name 'perllocal.pod' -exec rm -f {} \;
- rm -r $startdir/pkg/usr/lib/perl5/current/
+ make install DESTDIR=${startdir}/pkg
+
+ # remove perllocal.pod and .packlist
+ find ${startdir}/pkg -name perllocal.pod -delete
+ find ${startdir}/pkg -name .packlist -delete
}
More information about the arch-commits
mailing list