[arch-commits] CVS update of extra/lib/perl-net-ip (PKGBUILD)

Jan de Groot jgc at archlinux.org
Sun Sep 2 13:04:09 UTC 2007


    Date: Sunday, September 2, 2007 @ 09:04:09
  Author: jgc
    Path: /home/cvs-extra/extra/lib/perl-net-ip

Modified: PKGBUILD (1.5 -> 1.6)

upgpkg: perl-net-ip 1.25-2
use new perl methods


----------+
 PKGBUILD |   29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)


Index: extra/lib/perl-net-ip/PKGBUILD
diff -u extra/lib/perl-net-ip/PKGBUILD:1.5 extra/lib/perl-net-ip/PKGBUILD:1.6
--- extra/lib/perl-net-ip/PKGBUILD:1.5	Mon Mar 12 23:37:06 2007
+++ extra/lib/perl-net-ip/PKGBUILD	Sun Sep  2 09:04:09 2007
@@ -1,30 +1,31 @@
-# $Id: PKGBUILD,v 1.5 2007/03/13 03:37:06 kevin Exp $
+# $Id: PKGBUILD,v 1.6 2007/09/02 13:04:09 jgc Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 
 pkgname=perl-net-ip
-_realname=Net-IP
 pkgver=1.25
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl Module:  Easy manipulation of IPv4 and IPv6 addresses"
 arch=(i686 x86_64)
-url="http://search.cpan.org/~manu/$_realname-$pkgver/"
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/Net-IP"
 depends=('perl')
-source=(http://www.cpan.org/authors/id/M/MA/MANU/$_realname-$pkgver.tar.gz)
+options=(!emptydirs)
+source=(http://www.cpan.org/authors/id/M/MA/MANU/Net-IP-$pkgver.tar.gz)
 md5sums=('a49c0b02a9b793ff60191cdafc0c202e')
 
 build() {
-  cd $startdir/src/$_realname-$pkgver
+  cd $startdir/src/Net-IP-$pkgver
   # Force module installation to "current" perl directories.
   eval `perl -V:archname`
-  /usr/bin/perl Makefile.PL \
-      INSTALLARCHLIB=/usr/lib/perl5/current/$archname \
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
+      INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
       INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
-      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/$archname
-  /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
 
-  # remove perllocal.pod, .packlist, and empty dirs.
-  /bin/rm -rf $startdir/pkg/usr/lib/perl5/current
-  /bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/$archname
+  # 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