updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python3-genshi-svn / PKGBUILD
blob56785e0b0030d8372a7ee37f568f91883a55091b
1 # Maintainer: BeholdMyGlory <larvid@gmail.com>
3 pkgname=python3-genshi-svn
4 pkgver=1177
5 pkgrel=1
6 pkgdesc="Python toolkit for stream-based generation of output for the web."
7 url="http://genshi.edgewall.org/"
8 license=("BSD")
9 arch=('any')
10 depends=('python')
11 makedepends=('python-distribute' 'subversion')
13 _svntrunk=http://svn.edgewall.org/repos/genshi/trunk
14 _svnmod=genshi
16 build() {
17   cd "$srcdir"
18   msg "Connecting to SVN server...."
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 build..."
29   rm -rf "$srcdir/$_svnmod-build"
30   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31   cd "$srcdir/$_svnmod-build"
33   python setup.py install --root=$pkgdir
34   install -D -m0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING