[arch-commits] CVS update of extra/multimedia/perl-exiftool (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 15:28:39 UTC 2007
Date: Saturday, September 1, 2007 @ 11:28:39
Author: jgc
Path: /home/cvs-extra/extra/multimedia/perl-exiftool
Modified: PKGBUILD (1.20 -> 1.21)
upgpkg: perl-exiftool 6.94-2
Fix installation paths using universal perl methods
----------+
PKGBUILD | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
Index: extra/multimedia/perl-exiftool/PKGBUILD
diff -u extra/multimedia/perl-exiftool/PKGBUILD:1.20 extra/multimedia/perl-exiftool/PKGBUILD:1.21
--- extra/multimedia/perl-exiftool/PKGBUILD:1.20 Sun Aug 5 19:23:10 2007
+++ extra/multimedia/perl-exiftool/PKGBUILD Sat Sep 1 11:28:39 2007
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD,v 1.20 2007/08/05 23:23:10 tobias Exp $
+# $Id: PKGBUILD,v 1.21 2007/09/01 15:28:39 jgc Exp $
# Maintainer: tobias <tobias at archlinux.org>
# Contributor: Tobias Kieslich <tobias at justdreams.de>
pkgname=perl-exiftool
_srcname=Image-ExifTool
pkgver=6.94
-pkgrel=1
+pkgrel=2
license=('GPL')
pkgdesc="reader and rewriter of exif informations that supports raw files"
url="http://www.sno.phy.queensu.ca/~phil/exiftool/"
@@ -16,11 +16,16 @@
build() {
cd ${startdir}/src/${_srcname}-${pkgver}
- perl Makefile.PL
- make || return
+ eval `perl -V:archname`
+ # Force module installation to "current" perl directories.
+ 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 DESTDIR=${startdir}/pkg install
- cd ${startdir}/pkg/usr/lib/perl5
- rm ?.?.?/${CARCH}-linux-thread-multi/perllocal.pod
- mv ?.?.? current
- mv site_perl/?.?.? site_perl/current
+ # remove *.pod, .packlist, and empty dirs:
+ find ${startdir}/pkg -name '.packlist' -exec rm -f '{}' \;
+ find ${startdir}/pkg -name '*.pod' -exec rm -f '{}' \;
+ find ${startdir}/pkg -depth -type d -empty -delete
}
More information about the arch-commits
mailing list