diff options
author | root <root@rshg054.dnsready.net> | 2012-01-05 23:14:48 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-05 23:14:48 +0000 |
commit | 817e58c278cb8ebee7743205877d0f67c431fcec (patch) | |
tree | f2716cc059272be15ea4691e8d40e6a998f4c936 /staging/bogofilter | |
parent | 85828cc2c2c3ef5c0b9b03388b9323d3d163b389 (diff) |
Thu Jan 5 23:14:48 UTC 2012
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..12b842168 --- /dev/null +++ b/staging/bogofilter/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 145934 2012-01-04 12:24:40Z pierre $ +# Maintainer: tobias <tobias@archlinux.org> +# Contributor: Low Kian Seong <fastmail_low@speedymail.org> + +pkgname=bogofilter +pkgver=1.2.2 +pkgrel=4 +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/" +} |