PKGBUILDs/extra/bogofilter/PKGBUILD

30 lines
992 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Low Kian Seong <fastmail_low@speedymail.org>
pkgname=bogofilter
pkgver=1.2.1
pkgrel=1
pkgdesc="A fast Bayesian spam filtering tool"
2009-10-19 03:17:58 +00:00
arch=('arm')
2009-10-10 02:23:22 +00:00
license=(GPL3)
url="http://bogofilter.sourceforge.net"
depends=('db>=4.8' 'perl>=5.10.1-2' 'gsl')
backup=(etc/bogofilter/bogofilter.cf)
source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-stable/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
md5sums=('2eb802f4e271b99c3d8f68b14f8df9ef')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr \
--sysconfdir=/etc/bogofilter \
--localstatedir=/var \
--enable-transactions
make || return 1
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/
}