[arch-commits] Commit in bogofilter/trunk (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Sat Feb 14 14:10:52 UTC 2009


    Date: Saturday, February 14, 2009 @ 09:10:52
  Author: andyrtr
Revision: 26909

upgpkg: bogofilter 1.1.7-3
    backup config file, ship the contrib scripts

Modified:
  bogofilter/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-02-14 13:27:41 UTC (rev 26908)
+++ PKGBUILD	2009-02-14 14:10:52 UTC (rev 26909)
@@ -4,21 +4,27 @@
 
 pkgname=bogofilter
 pkgver=1.1.7
-pkgrel=2
+pkgrel=3
 pkgdesc="A fast Bayesian spam filtering tool"
 arch=(i686 x86_64)
 license=(GPL3)
 url="http://bogofilter.sourceforge.net"
 depends=('db>=4.7' 'perl' 'gsl')
+backup=(etc/bogofilter/bogofilter.cf)
 source=(http://dl.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
 md5sums=('fdcb770769c013110631eca4c0473cd7')
 
 build() {
-  cd $startdir/src/${pkgname}-${pkgver}
+  cd ${srcdir}/${pkgname}-${pkgver}
   ./configure --prefix=/usr \
               --sysconfdir=/etc/bogofilter  \
               --localstatedir=/var \
               --enable-transcations
   make || return 1
-  make DESTDIR=$startdir/pkg install
+  make DESTDIR=${pkgdir} install || return 1
+
+  mv ${pkgdir}/etc/bogofilter/bogofilter.cf.example ${pkgdir}/etc/bogofilter/bogofilter.cf
+
+  install -dm755 ${pkgdir}/usr/share/${pkgname}/contrib
+  install -m644 contrib/* ${pkgdir}/usr/share/${pkgname}/contrib/
 }




More information about the arch-commits mailing list