[arch-commits] CVS update of extra/system/swatch (PKGBUILD)

Kevin Piche kevin at archlinux.org
Mon Jan 28 03:50:58 UTC 2008


    Date: Sunday, January 27, 2008 @ 22:50:58
  Author: kevin
    Path: /home/cvs-extra/extra/system/swatch

Modified: PKGBUILD (1.2 -> 1.3)

upgpkg: swatch 3.2.2-1
Added license


----------+
 PKGBUILD |   23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)


Index: extra/system/swatch/PKGBUILD
diff -u extra/system/swatch/PKGBUILD:1.2 extra/system/swatch/PKGBUILD:1.3
--- extra/system/swatch/PKGBUILD:1.2	Tue May 30 13:31:17 2006
+++ extra/system/swatch/PKGBUILD	Sun Jan 27 22:50:58 2008
@@ -1,27 +1,30 @@
-# $Id: PKGBUILD,v 1.2 2006/05/30 17:31:17 ganja_guru Exp $
+# $Id: PKGBUILD,v 1.3 2008/01/28 03:50:58 kevin Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: K. Piche <kpiche at rogers.com>
 
 pkgname=swatch
-pkgver=3.1.1
+pkgver=3.2.2
 pkgrel=1
 pkgdesc="The active log file monitoring tool"
 arch=(i686 x86_64)
+license=('GPL')
 url="http://swatch.sourceforge.net/"
-source=(http://dl.sourceforge.net/sourceforge/swatch/$pkgname-$pkgver.tar.gz)
+source=(http://dl.sourceforge.net/sourceforge/swatch/${pkgname}-${pkgver}.tar.gz)
 depends=('perl-date-calc' 'perl-date-manip' 'perl-file-tail' 'perl-timedate')
+options=(!emptydirs)
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
+  cd ${startdir}/src/${pkgname}-${pkgver}
   # Force module installation to "current" perl directories.
+  eval `perl -V:archname`
   /usr/bin/perl Makefile.PL \
-      INSTALLARCHLIB=/usr/lib/perl5/current/${CARCH}-linux-thread-multi \
+      INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
       INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
-      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
+      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
   /usr/bin/make || return 1
-  /usr/bin/make install DESTDIR=$startdir/pkg
+  /usr/bin/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/${CARCH}-linux-thread-multi
+  # 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