diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/bogofilter |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/bogofilter')
-rw-r--r-- | extra/bogofilter/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/extra/bogofilter/PKGBUILD b/extra/bogofilter/PKGBUILD new file mode 100644 index 000000000..d973643f2 --- /dev/null +++ b/extra/bogofilter/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 110357 2011-02-18 23:42:09Z allan $ +# Maintainer: tobias <tobias@archlinux.org> +# Contributor: Low Kian Seong <fastmail_low@speedymail.org> + +pkgname=bogofilter +pkgver=1.2.2 +pkgrel=2 +pkgdesc="A fast Bayesian spam filtering tool" +arch=('i686' 'x86_64') +license=(GPL3) +url="http://bogofilter.sourceforge.net" +depends=('db' 'perl' 'gsl') +backup=(etc/bogofilter/bogofilter.cf) +source=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-current/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2) +md5sums=('4bcabdf8c5e7efefcb508eda7e80eebc') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --sysconfdir=/etc/bogofilter \ + --localstatedir=/var \ + --enable-transactions + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + 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/ +} |