updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / trac-spamfilter-svn / PKGBUILD
blob8a51a2e209f81dc89678a0aa905e02873029fec7
1 # Contributor: Samed Beyribey <ras0ir AT eventualis DOT org>
2 # Contributor: Alper Kanat <alperkanat+aur@raptiye.org>
3 pkgname=trac-spamfilter-svn
4 pkgver=10212
5 pkgrel=1
6 pkgdesc="Trac Spam Filtering Plugin"
7 arch=('i686' 'x86_64')
8 url="http://trac.edgewall.org/wiki/SpamFilter"
9 license=('GPL')
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
15 _svnmod=spam-filter
17 build() {
18   cd "$srcdir"
20   if [ -d $_svnmod/.svn ]; then
21     (cd $_svnmod && svn up -r $pkgver)
22   else
23     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24   fi
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"
33   #
34   # BUILD
35   #
36   python setup.py build || return 1
37   python setup.py install --root=${pkgdir} || return 1