Date: Sunday, December 12, 2021 @ 10:46:52 Author: arojas Revision: 431932
archrelease: copy trunk to staging-x86_64 Added: bogofilter/repos/staging-x86_64/ bogofilter/repos/staging-x86_64/PKGBUILD (from rev 431931, bogofilter/trunk/PKGBUILD) ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Copied: bogofilter/repos/staging-x86_64/PKGBUILD (from rev 431931, bogofilter/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2021-12-12 10:46:52 UTC (rev 431932) @@ -0,0 +1,51 @@ +# Maintainer: AndyRTR <andy...@archlinux.org> +# Contributor: tobias <tob...@archlinux.org> +# Contributor: Low Kian Seong <fastmail_...@speedymail.org> + +pkgname=bogofilter +pkgver=1.2.5 +pkgrel=3 +pkgdesc="A fast Bayesian spam filtering tool" +arch=('x86_64') +license=('GPL3') +url="https://bogofilter.sourceforge.io/" +depends=('db' 'perl' 'gsl') # 'sqlite' +makedepends=('valgrind' 'xmlto') +backup=('etc/bogofilter/bogofilter.cf') +source=(https://downloads.sourceforge.net/project/${pkgname}/${pkgname}-stable/${pkgname}-${pkgver}.tar.xz{,.asc}) # asc file doesn't work with pacman +sha1sums=('c779c3afb3e57ae0208ee503a854aff716b0cafd' + 'SKIP') +validpgpkeys=('DC4A655BD993CD4871FA8210E412B156EFF3855A') # "Matthias Andree <mand...@freebsd.org>" + +# keep Berkeley DB as backend for now +# sqlite3 based backend doesn't allow +# to use db-transaction option that is +# used to bf_compact the wordlist.db +# other backend aren't available +# currently in Arch repos +# as of 1.2.5 new backend can be KyotoCabinet and lmdb + +build() { + cd "${pkgname}"-${pkgver} + ./configure --prefix=/usr \ + --sysconfdir=/etc/bogofilter \ + --localstatedir=/var \ + --enable-transactions \ + --with-database=db #--help + make +} + +check() { + cd "$pkgname"-$pkgver + BF_RUN_VALGRIND=1 make -k -C src check || /bin/true +} + +package() { + cd "${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/" +}