[arch-commits] CVS update of extra/lib/perl-mime-lite (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 19:35:25 UTC 2007
Date: Saturday, September 1, 2007 @ 15:35:25
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-mime-lite
Modified: PKGBUILD (1.3 -> 1.4)
upgpkg: perl-mime-lite 3.020-1
Use universal perl methods
----------+
PKGBUILD | 35 ++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)
Index: extra/lib/perl-mime-lite/PKGBUILD
diff -u extra/lib/perl-mime-lite/PKGBUILD:1.3 extra/lib/perl-mime-lite/PKGBUILD:1.4
--- extra/lib/perl-mime-lite/PKGBUILD:1.3 Sun May 28 06:19:47 2006
+++ extra/lib/perl-mime-lite/PKGBUILD Sat Sep 1 15:35:25 2007
@@ -1,27 +1,32 @@
-# $Id: PKGBUILD,v 1.3 2006/05/28 10:19:47 notz Exp $
+# $Id: PKGBUILD,v 1.4 2007/09/01 19:35:25 jgc Exp $
# Maintainer: eric <eric at archlinux.org>
# Contributor: Eric Johnson <eric at coding-zone.com>
pkgname=perl-mime-lite
-pkgver=3.01
+pkgver=3.020
pkgrel=1
pkgdesc="Perl module that provides lightweight MIME generator"
arch=(i686 x86_64)
-url="http://search.cpan.org/~yves/MIME-Lite-$pkgver"
-depends=('perl>=5.8.4-1')
-source=(http://search.cpan.org/CPAN/authors/id/Y/YV/YVES/MIME-Lite-$pkgver.tar.gz)
-md5sums=('b41eb689819775fd8df360458fc2d507')
+license=('GPL' 'PerlArtistic')
+url="http://search.cpan.org/dist/MIME-Lite"
+depends=('perl' 'perl-mail-address' 'perl-mime-types')
+options=(!emptydirs)
+source=(http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/MIME-Lite-$pkgver.tar.gz)
+md5sums=('e8e5e29b32bd44ddc747cc3f9b7f97da')
build() {
cd $startdir/src/MIME-Lite-$pkgver
- /usr/bin/perl Makefile.PL
- # ugly hack to make install location
- # compatible with newer versions of perl.
- # NOTE: if perl version changes from 5.8.5, change sed line too
- /bin/sed -i "s:5.8.5:current:g" Makefile
- /usr/bin/make || return 1
- /usr/bin/make install DESTDIR=$startdir/pkg
- /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
- /bin/rm $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/MIME/Lite/.packlist
+ # Force module installation to "current" perl directories.
+ eval `perl -V:archname`
+ yes | 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
+
+ # 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