diff options
author | root <root@rshg047.dnsready.net> | 2011-06-20 23:03:55 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-20 23:03:55 +0000 |
commit | f02c28de0bbcb85e152fc19d0008805021fe1a33 (patch) | |
tree | 0cb0a135fbbb06d2e31fe64ff2caad474dcc3813 /staging/bogofilter | |
parent | 5457eacc747fc3f91e10a1f452230b1feac39eff (diff) |
Mon Jun 20 23:03:54 UTC 2011
Diffstat (limited to 'staging/bogofilter')
-rw-r--r-- | staging/bogofilter/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/staging/bogofilter/PKGBUILD b/staging/bogofilter/PKGBUILD new file mode 100644 index 000000000..860895cf9 --- /dev/null +++ b/staging/bogofilter/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 127873 2011-06-19 06:22:51Z eric $ +# Maintainer: tobias <tobias@archlinux.org> +# Contributor: Low Kian Seong <fastmail_low@speedymail.org> + +pkgname=bogofilter +pkgver=1.2.2 +pkgrel=3 +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/" +} |