[arch-commits] CVS update of extra/lib/perl-timedate (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 20:16:11 UTC 2007
Date: Saturday, September 1, 2007 @ 16:16:11
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-timedate
Modified: PKGBUILD (1.4 -> 1.5)
upgpkg: perl-timedate 1.16-2
Use universal perl methods
----------+
PKGBUILD | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
Index: extra/lib/perl-timedate/PKGBUILD
diff -u extra/lib/perl-timedate/PKGBUILD:1.4 extra/lib/perl-timedate/PKGBUILD:1.5
--- extra/lib/perl-timedate/PKGBUILD:1.4 Sun May 28 06:19:47 2006
+++ extra/lib/perl-timedate/PKGBUILD Sat Sep 1 16:16:11 2007
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD,v 1.4 2006/05/28 10:19:47 notz Exp $
+# $Id: PKGBUILD,v 1.5 2007/09/01 20:16:11 jgc Exp $
# Maintainer: Kevin Piche <kevin at archlinux.org>
# Contributor: Manolis Tzanidakis
@@ -7,24 +7,29 @@
pkgrel=2
pkgdesc="Date formating subroutines"
arch=(i686 x86_64)
-url="http://search.cpan.org/~gbarr/TimeDate-$pkgver"
-depends=('perl>=5.8.4-1')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/TimeDate"
+depends=('perl')
source=(http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-$pkgver.tar.gz)
-md5sums=('b3cc35a7cabd106ac8829d2f2ff4bd9d')
+options=(!emptydirs)
replaces=('timedate')
provides=('timedate')
+md5sums=('b3cc35a7cabd106ac8829d2f2ff4bd9d')
build() {
cd $startdir/src/TimeDate-$pkgver
+
# Force module installation to "current" perl directories.
- /usr/bin/perl Makefile.PL \
- INSTALLARCHLIB=/usr/lib/perl5/current/${CARCH}-linux-thread-multi \
+ 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/${CARCH}-linux-thread-multi
- /usr/bin/make || return 1
- /usr/bin/make install DESTDIR=$startdir/pkg
+ INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
+ make || return 1
+ make install DESTDIR=${startdir}/pkg
- /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