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

Jan de Groot jgc at archlinux.org
Sat Sep 1 20:14:03 UTC 2007


    Date: Saturday, September 1, 2007 @ 16:14:03
  Author: jgc
    Path: /home/cvs-extra/extra/lib/perl-newt

Modified: PKGBUILD (1.1 -> 1.2)

upgpkg: perl-newt 1.08-2
Use universal perl methods


----------+
 PKGBUILD |   38 ++++++++++++++++++++------------------
 1 file changed, 20 insertions(+), 18 deletions(-)


Index: extra/lib/perl-newt/PKGBUILD
diff -u extra/lib/perl-newt/PKGBUILD:1.1 extra/lib/perl-newt/PKGBUILD:1.2
--- extra/lib/perl-newt/PKGBUILD:1.1	Sun Apr 15 09:12:15 2007
+++ extra/lib/perl-newt/PKGBUILD	Sat Sep  1 16:14:03 2007
@@ -1,36 +1,38 @@
-# $Id: PKGBUILD,v 1.1 2007/04/15 13:12:15 tom Exp $
+# $Id: PKGBUILD,v 1.2 2007/09/01 20:14:03 jgc Exp $
 # Maintainer: Tom Killian <tom at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 
 pkgname=perl-newt
 pkgver=1.08
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl bindings for the Newt text mode widget-based windowing toolkit"
-depends=('popt' 'slang' 'tcl')
+arch=('i686')
+license=('PerlArtistic')
+depends=('popt' 'slang' 'tcl' 'perl')
+options=(!emptydirs)
 url="ftp://ftp.msg.com.mx/pub/Newt/"
-license=('GPL')
-source=(ftp://ftp.msg.com.mx/pub/Newt/Newt-$pkgver.tar.gz newt-1.08-slang-2.patch \
+source=(ftp://ftp.msg.com.mx/pub/Newt/Newt-${pkgver}.tar.gz
+	newt-1.08-slang-2.patch
         newt-1.08-gcc-4.patch)
-arch=('i686')
 md5sums=('462f3fabc05ec5dd4a2d554c01568bdf' '1498b9b6479f189524b89aaa688f5931'\
          '436eca000452f8aa06d780b09529fe49')
 
 
 build() {
-  cd $startdir/src/Newt-$pkgver
-  for patch in newt-$pkgver-{slang-2,gcc-4}.patch; do
-    patch -p1 -i $startdir/src/$patch || return 1
-  done
-  eval `perl -V:archname`
+  cd ${startdir}/src/Newt-${pkgver}
+  patch -Np1 -i ${startdir}/src/newt-1.08-slang-2.patch || return 1
+  patch -Np1 -i ${startdir}/src/newt-1.08-gcc-4.patch || return 1
+
   # Force module installation to "current" perl directories.
-  /usr/bin/perl Makefile.PL \
+  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}
-  /usr/bin/make || return 1
-  /usr/bin/make DESTDIR=$startdir/pkg install
-  # remove *.pod, .packlist, and empty dirs:
-  /usr/bin/find $startdir/pkg -name '.packlist' -exec rm  '{}' \;
-  /usr/bin/find $startdir/pkg -name '*.pod' -exec rm  '{}' \;
-  /usr/bin/find $startdir/pkg -depth -type d -empty -exec rmdir '{}' \;
+  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