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

Jan de Groot jgc at archlinux.org
Sat Sep 1 19:55:24 UTC 2007


    Date: Saturday, September 1, 2007 @ 15:55:24
  Author: jgc
    Path: /home/cvs-extra/extra/lib/perl-file-tail

Modified: PKGBUILD (1.2 -> 1.3)

upgpkg: perl-file-tail 0.99.3-2
Use universal perl methods


----------+
 PKGBUILD |   30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)


Index: extra/lib/perl-file-tail/PKGBUILD
diff -u extra/lib/perl-file-tail/PKGBUILD:1.2 extra/lib/perl-file-tail/PKGBUILD:1.3
--- extra/lib/perl-file-tail/PKGBUILD:1.2	Sun May 28 06:19:46 2006
+++ extra/lib/perl-file-tail/PKGBUILD	Sat Sep  1 15:55:23 2007
@@ -1,27 +1,31 @@
-# $Id: PKGBUILD,v 1.2 2006/05/28 10:19:46 notz Exp $
+# $Id: PKGBUILD,v 1.3 2007/09/01 19:55:23 jgc Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 
 pkgname=perl-file-tail
 pkgver=0.99.3
-pkgrel=1
-pkgdesc="Perl extension for reading from continously updated files"
+pkgrel=2
+pkgdesc="Perl/CPAN File::Tail module for reading from continously updated files"
 arch=(i686 x86_64)
-url="http://search.cpan.org/~mgrabnar/File-Tail-$pkgver/"
-depends=('perl>=5.8.4-1')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/File-Tail"
+depends=('perl')
+options=(!emptydirs)
 source=(http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/File-Tail-$pkgver.tar.gz)
 md5sums=('ef0fb7bcb4181ba593f4a09940f61d1c')
 
 build() {
   cd $startdir/src/File-Tail-$pkgver
   # Force module installation to "current" perl directories.
-  /usr/bin/perl Makefile.PL \
-      INSTALLARCHLIB=/usr/lib/perl5/current/${CARCH}-linux-thread-multi \
+  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/${CARCH}-linux-thread-multi
-  /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 and .packlist
+  find ${startdir}/pkg -name perllocal.pod -delete
+  find ${startdir}/pkg -name .packlist -delete
 
-  # 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/${CARCH}-linux-thread-multi
 }




More information about the arch-commits mailing list