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

Eric Belanger eric at archlinux.org
Tue Jan 29 03:04:58 UTC 2008


    Date: Monday, January 28, 2008 @ 22:04:58
  Author: eric
    Path: /home/cvs-extra/extra/system/swatch

Modified: PKGBUILD (1.4 -> 1.5)

upgpkg: swatch 3.2.2-1
build package for x86_64 extra


----------+
 PKGBUILD |   25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)


Index: extra/system/swatch/PKGBUILD
diff -u extra/system/swatch/PKGBUILD:1.4 extra/system/swatch/PKGBUILD:1.5
--- extra/system/swatch/PKGBUILD:1.4	Mon Jan 28 20:41:10 2008
+++ extra/system/swatch/PKGBUILD	Mon Jan 28 22:04:58 2008
@@ -1,26 +1,29 @@
-# $Id: PKGBUILD,v 1.4 2008/01/29 01:41:10 kevin Exp $
+# $Id: PKGBUILD,v 1.5 2008/01/29 03:04:58 eric Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: K. Piche <kpiche at rogers.com>
 
 pkgname=swatch
 pkgver=3.2.2
-pkgrel=2
+pkgrel=1
 pkgdesc="The active log file monitoring tool"
 arch=(i686 x86_64)
 license=('GPL')
 url="http://swatch.sourceforge.net/"
-depends=('perl-date-calc' 'perl-date-manip' 'perl-file-tail' 'perl-timedate' 
-'perl>=5.10.0')
-source=(http://dl.sourceforge.net/sourceforge/swatch/$pkgname-$pkgver.tar.gz)
-options=(!emptydirs)
+source=(http://dl.sourceforge.net/sourceforge/swatch/${pkgname}-${pkgver}.tar.gz)
 md5sums=('b7d360b01da8168b4b7d4cf45c263f55')
+depends=('perl-date-calc' 'perl-date-manip' 'perl-file-tail' 'perl-timedate')
+options=(!emptydirs)
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
-  # install module in vendor directories.
-  perl Makefile.PL INSTALLDIRS=vendor || return 1
-  make || return 1
-  make install DESTDIR=$startdir/pkg
+  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/${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
 
   # remove perllocal.pod and .packlist
   find ${startdir}/pkg -name perllocal.pod -delete




More information about the arch-commits mailing list