[arch-commits] Commit in bogofilter/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Mon Oct 14 14:58:11 UTC 2019


    Date: Monday, October 14, 2019 @ 14:58:10
  Author: andyrtr
Revision: 364803

archrelease: copy trunk to testing-x86_64

Added:
  bogofilter/repos/testing-x86_64/
  bogofilter/repos/testing-x86_64/PKGBUILD
    (from rev 364802, bogofilter/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: bogofilter/repos/testing-x86_64/PKGBUILD (from rev 364802, bogofilter/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-10-14 14:58:10 UTC (rev 364803)
@@ -0,0 +1,51 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Contributor: tobias <tobias at archlinux.org>
+# Contributor: Low Kian Seong <fastmail_low at speedymail.org>
+
+pkgname=bogofilter
+pkgver=1.2.5
+pkgrel=1
+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 <mandree at 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/"
+}



More information about the arch-commits mailing list