# Maintainer: tobias # Contributor: Low Kian Seong pkgname=bogofilter pkgver=1.2.1 pkgrel=1 pkgdesc="A fast Bayesian spam filtering tool" arch=('arm') 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/ }