[arch-commits] CVS update of extra/lib/perl-module-pluggable (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Sat Sep 1 19:23:34 UTC 2007
Date: Saturday, September 1, 2007 @ 15:23:34
Author: jgc
Path: /home/cvs-extra/extra/lib/perl-module-pluggable
Added: PKGBUILD (1.1)
upgpkg: perl-module-pluggable 3.6-3
Add Module::Pluggable
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Index: extra/lib/perl-module-pluggable/PKGBUILD
diff -u /dev/null extra/lib/perl-module-pluggable/PKGBUILD:1.1
--- /dev/null Sat Sep 1 15:23:34 2007
+++ extra/lib/perl-module-pluggable/PKGBUILD Sat Sep 1 15:23:34 2007
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD,v 1.1 2007/09/01 19:23:34 jgc Exp $
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Charles Mauch <cmauch at gmail.com>
+pkgname=perl-module-pluggable
+pkgver=3.6
+pkgrel=3
+pkgdesc="Perl/CPAN Module Module::Pluggable"
+arch=("i686" "x86_64")
+url="http://search.cpan.org/dist/Module-Pluggable"
+license=('GPL' 'PerlArtistik')
+depends=('perl')
+options=(!emptydirs)
+source=("http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-${pkgver}.tar.gz")
+md5sums=("9b804c4a3dc2df0c6259ff43ee0a165c")
+
+build() {
+ cd ${startdir}/src/Module-Pluggable-${pkgver}
+ # 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}
+ 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
+}
More information about the arch-commits
mailing list