summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c36aed9d8b1a35fc48e4e6d24bbcd3a901f7a9a9 (plain)
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
# Maintainer: Daniel Peukert <dan.peukert@gmail.com>
# Contributor: Johannes Löthberg <johannes@kyriasis.com> (spambayes PKGBUILD)
# Contributor: Felix Yan <felixonmars@archlinux.org> (spambayes PKGBUILD)
_pkgname='spambayes'
pkgname="$_pkgname-svn"
pkgver='1.1b1.r3273'
pkgrel='3'
pkgdesc='Bayesian anti-spam classifier written in Python - svn version'
arch=('any')
url="http://$_pkgname.sourceforge.net/"
license=('PSF')
depends=('python2' 'python2-lockfile' 'python2-pydns')
makedepends=('python2-setuptools' 'subversion')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$pkgname::svn+https://svn.code.sf.net/p/$_pkgname/code/trunk")
sha256sums=('SKIP')

_sourcedirectory="$pkgname/$_pkgname"

pkgver() {
	cd "$srcdir/$_sourcedirectory/"
	printf '%s.r%s' "$(sed -nE 's/__version__ = "([^"]*)"/\1/p' "$_pkgname/__init__.py")" "$(svnversion)"
}

package() {
	cd "$srcdir/$_sourcedirectory/"
	python2 setup.py install --root="$pkgdir"
}