summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-01-29 21:00:01 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-01-29 21:00:01 +0100
commitb962d1d027571f3c80482b7b078843d135b9182d (patch)
tree9fb8e77fbe32f087331316057dc82cc7a35d5532
parent1be355690cd92f612e2f43c6cc66b23f9caadd63 (diff)
downloadabslibre-b962d1d027571f3c80482b7b078843d135b9182d.tar.gz
abslibre-b962d1d027571f3c80482b7b078843d135b9182d.tar.bz2
abslibre-b962d1d027571f3c80482b7b078843d135b9182d.zip
bogofilter-libre
-rw-r--r--libre/bogofilter-libre/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/libre/bogofilter-libre/PKGBUILD b/libre/bogofilter-libre/PKGBUILD
new file mode 100644
index 000000000..4f7c7deed
--- /dev/null
+++ b/libre/bogofilter-libre/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 146459 2012-01-11 15:21:47Z stephane $
+# Maintainer: tobias <tobias@archlinux.org>
+# Contributor: Low Kian Seong <fastmail_low@speedymail.org>
+
+_pkgname=bogofilter
+pkgname=bogofilter-libre
+pkgver=1.2.2
+pkgrel=4
+pkgdesc="A fast Bayesian spam filtering tool"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://bogofilter.sourceforge.net"
+depends=('db' 'perl' 'gsl')
+backup=('etc/bogofilter/bogofilter.cf')
+source=(http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.xz)
+md5sums=('af9c7857c66b1884c820f54f23082701')
+
+mksource() {
+ [ -f ${_pkgname}-${pkgver}.tar.bz2 ] || wget http://sourceforge.net/projects/${_pkgname}/files/${_pkgname}-current/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}.tar.bz2
+ tar xf ${_pkgname}-${pkgver}.tar.bz2
+ # Remove noncommercial files.
+ rm ${_pkgname}-${pkgver}/doc/bogofilter-SA-{2005-0{1,2},2010-01}
+ tar cJf ${pkgname}-${pkgver}.tar.xz ${_pkgname}-${pkgver}
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/bogofilter \
+ --localstatedir=/var \
+ --enable-transactions
+ make
+}
+
+package() {
+ cd "${srcdir}/${_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/"
+}