aboutsummaryrefslogtreecommitdiffstats
path: root/community/bogofilter/APKBUILD
blob: bef2c37ea04f4aa22f54d8eeaf318213a79e25c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=bogofilter
pkgver=1.2.4
pkgrel=0
pkgdesc="A Bayesian mail filter that classifies mail by statistical analysis of the message's header and content."
url="http://bogofilter.sourceforge.net/"
arch="all"
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="sqlite-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/bogofilter/bogofilter-stable/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2"

builddir=${srcdir}/${pkgname}-${pkgver}

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
       cd "$builddir"
        ./configure --prefix=/usr \
           --with-included-gsl \
           --with-database=sqlite3 || return 1
        make
}

package() {
       cd "$builddir"
        make DESTDIR=${pkgdir} install
}

md5sums="d0a5eebb3274b23ceabe766a6443a1c5  bogofilter-1.2.4.tar.bz2"
sha256sums="e10287a58d135feaea26880ce7d4b9fa2841fb114a2154bf7da8da98aab0a6b4  bogofilter-1.2.4.tar.bz2"
sha512sums="e8c0b6bcc14f12fbbb2752e697a6d9065e17abfca3f70045ce9fe668d01c1cfad4adaa35c81546ecdd3639b0c28f3f4776bb5ed4699f21e9e2a5b19ca33479db  bogofilter-1.2.4.tar.bz2"