[arch-commits] Commit in mod_perl/trunk (PKGBUILD)
Kevin Piche
kevin at archlinux.org
Mon Jun 16 01:44:04 UTC 2008
Date: Sunday, June 15, 2008 @ 21:44:03
Author: kevin
Revision: 2924
upgpkg: mod_perl 2.0.4-1
Corrected license
Modified:
mod_perl/trunk/PKGBUILD
----------+
PKGBUILD | 37 ++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-06-15 21:18:28 UTC (rev 2923)
+++ PKGBUILD 2008-06-16 01:44:03 UTC (rev 2924)
@@ -1,28 +1,27 @@
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Maintainer: Tom K <tomk at runbox.com>
+
pkgname=mod_perl
-pkgver=2.0.3
-pkgrel=3
+_realname=mod_perl
+pkgver=2.0.4
+pkgrel=1
pkgdesc="Apache module that embeds the Perl interpreter within the server"
-url="http://search.cpan.org/~PGOLLUCCI/mod_perl"
-depends=('perl' 'apache' 'db>=4.6' 'apr-util')
-license="GPL"
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl>=5.10.0' 'apache' 'db>=4.6' 'apr-util')
+license=('APACHE')
arch=('i686' 'x64_86')
-source=(http://www.cpan.org/authors/id/P/PG/PGOLLUCCI/mod_perl-$pkgver.tar.gz)
-md5sums=('b40e2adf67c6be15a0041af1c67b6997')
+options=(!emptydirs)
+source=(http://search.cpan.org/CPAN/authors/id/G/GO/GOZER/${_realname}-${pkgver}.tar.gz)
+md5sums=('1a05625ae6843085f985f5da8214502a')
build() {
- cd $startdir/src/mod_perl-$pkgver
- eval `perl -V:archname`
- # Force module installation to "current" perl directories.
- /usr/bin/perl Makefile.PL MP_APXS=/usr/sbin/apxs \
- INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
- INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
- INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
+ cd ${startdir}/src/${_realname}-${pkgver}
+ # install module in vendor directories.
+ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor MP_APXS=/usr/sbin/apxs || return 1
/usr/bin/make || return 1
- /usr/bin/make DESTDIR=$startdir/pkg install
- # remove perllocal.pod, .packlist, and empty dirs:
- /usr/bin/find $startdir/pkg -name '.packlist' -exec rm '{}' \;
- /usr/bin/find $startdir/pkg -name 'perllocal.pod' -exec rm '{}' \;
- /usr/bin/find $startdir/pkg -depth -type d -empty -exec rmdir '{}' \;
+ /usr/bin/make install DESTDIR=${startdir}/pkg || return 1
+
+ # remove perllocal.pod and .packlist.
+ /usr/bin/find ${startdir}/pkg -name 'perllocal.pod' -delete
+ /usr/bin/find ${startdir}/pkg -name '.packlist' -delete
}
More information about the arch-commits
mailing list