1 # Contributor: Samed Beyribey <ras0ir AT eventualis DOT org>
2 # Contributor: Alper Kanat <alperkanat+aur@raptiye.org>
3 pkgname=trac-spamfilter-svn
6 pkgdesc="Trac Spam Filtering Plugin"
8 url="http://trac.edgewall.org/wiki/SpamFilter"
10 depends=("trac>=0.11")
11 makedepends=('python' 'setuptools')
12 install=spamfilter.install
14 _svntrunk=http://svn.edgewall.com/repos/trac/plugins/0.12/spam-filter-captcha
20 if [ -d $_svnmod/.svn ]; then
21 (cd $_svnmod && svn up -r $pkgver)
23 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26 msg "SVN checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_svnmod-build"
30 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31 cd "$srcdir/$_svnmod-build"
36 python setup.py build || return 1
37 python setup.py install --root=${pkgdir} || return 1