diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-04 02:04:13 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-09-04 02:04:13 -0300 |
commit | 0a088f3c285e53ee377271f42c16071e3ee5bafd (patch) | |
tree | ee094061e4ec6cd7808201f3c75c7f343ef3ba3a /libre/bogofilter/PKGBUILD | |
parent | 0be822175bb3cef0534b9a0597e84ae1ee6374ec (diff) | |
parent | 035f2fd609cd247ac0430f15cad3af94ce79f5f8 (diff) | |
download | abslibre-0a088f3c285e53ee377271f42c16071e3ee5bafd.tar.gz abslibre-0a088f3c285e53ee377271f42c16071e3ee5bafd.tar.bz2 abslibre-0a088f3c285e53ee377271f42c16071e3ee5bafd.zip |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/bogofilter/PKGBUILD')
-rw-r--r-- | libre/bogofilter/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libre/bogofilter/PKGBUILD b/libre/bogofilter/PKGBUILD new file mode 100644 index 000000000..4ab5f7c66 --- /dev/null +++ b/libre/bogofilter/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 196818 2013-10-20 08:27:26Z andyrtr $ +# Maintainer (Arch): AndyRTR <andyrtr@archlinux.org> +# Contributor (Arch): tobias <tobias@archlinux.org> +# Contributor (Arch): Low Kian Seong <fastmail_low@speedymail.org> +# Maintainer: Márcio Silva <marcio@parabola.nu> + +pkgname=bogofilter +_pkgname=$pkgname-libre +pkgver=1.2.4 +pkgrel=1.parabola1 +pkgdesc="A fast Bayesian spam filtering tool, without noncommercial files" +arch=('i686' 'x86_64' 'mips64el') +license=('GPL3') +url="http://$pkgname.sourceforge.net" +depends=('db' 'perl' 'gsl') +backup=("etc/$pkgname/$pkgname.cf") +mksource=(http://sourceforge.net/projects/${pkgname}/files/${pkgname}-current/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2) +source=(https://repo.parabolagnulinux.org/other/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2) +mkmd5sums=('d0a5eebb3274b23ceabe766a6443a1c5') +md5sums=('cce573e059d39a68cf78097dbfaa5b2d') +replaces=("${_pkgname}") +conflicts=("${_pkgname}") + +mksource() { + cd ${pkgname}-${pkgver} + + # Remove noncommercial files. + rm doc/$pkgname-SA-{2005-0{1,2},2010-01} +} + +build() { + cd ${_pkgname}-${pkgver} + + ./configure --prefix=/usr \ + --sysconfdir=/etc/$pkgname \ + --localstatedir=/var \ + --enable-transactions + make +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + mv "${pkgdir}/etc/$pkgname/$pkgname.cf.example" "${pkgdir}/etc/$pkgname/$pkgname.cf" + + install -dm755 "${pkgdir}/usr/share/${pkgname}/contrib" + install -m644 contrib/* "${pkgdir}/usr/share/${pkgname}/contrib/" +} |