updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / pycompiz-svn / PKGBUILD
blob66394ca08d3ebf7076b78b2c21f6c153107f85eb
1 # Maintainer:  Jonathan Wiersma <archaur at jonw dot org>
2 arch=(i686 x86_64)
3 pkgname=pycompiz-svn
4 pkgver=3
5 pkgrel=2
6 pkgdesc="Python module for controlling compiz through DBus"
7 url="http://code.google.com/p/pycompiz"
8 license=('GPL2')
10 #if [ ! -z `pacman -Qqs "^compiz-git$"` ]; then
11 #       depends=('compiz-git' 'dbus-python')
12 #else
13         depends=('compiz-core' 'dbus-python')
14 #fi
15 makedepends=('subversion')
16 conflicts=('pycompiz')
17 provides=('pycompiz')
19 source=()
20 md5sums=()
22 _svntrunk=http://pycompiz.googlecode.com/svn/trunk
23 _svnmod=pycompiz-read-only
25 build() {
26         cd $srcdir || return 1
28         if [ -d $_svnmod/.svn ]; then
29                 (cd $_svnmod && svn up -r $pkgver) || return 1
30         else
31                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32         fi
34         msg "SVN checkout done or server timeout"
35         msg "Starting make..."
37         rm -rf $_svnmod-build
38         cp -r $_svnmod $_svnmod-build || return 1
39         cd $_svnmod-build/pyCompiz || return 1
40         
41         python setup.py install --root=${pkgdir} || return 1
43         rm -rf $srcdir/$_svnmod-build || return 1
45 # vim:syntax=sh