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

Andreas Radke andyrtr at gemini.archlinux.org
Mon Jan 3 13:22:00 UTC 2022


    Date: Monday, January 3, 2022 @ 13:22:00
  Author: andyrtr
Revision: 433332

archrelease: copy trunk to extra-x86_64

Added:
  bogofilter/repos/extra-x86_64/PKGBUILD
    (from rev 433331, bogofilter/trunk/PKGBUILD)
Deleted:
  bogofilter/repos/extra-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-03 13:21:51 UTC (rev 433331)
+++ PKGBUILD	2022-01-03 13:22:00 UTC (rev 433332)
@@ -1,51 +0,0 @@
-# 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=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 <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/"
-}

Copied: bogofilter/repos/extra-x86_64/PKGBUILD (from rev 433331, bogofilter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-03 13:22:00 UTC (rev 433332)
@@ -0,0 +1,59 @@
+# 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=4
+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>"
+
+# note: build system doesn't allow easy overlinking prevention - no libtool hack possible
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  autoreconf -vfi
+}
+
+# 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/"
+  rm "${pkgdir}"/usr/share/${pkgname}/contrib/bogogrep.o
+}



More information about the arch-commits mailing list