updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / compizconfig-python-git / PKGBUILD
blob2a81dff65c7402723e238370e80446e0a8342057
1 pkgname=compizconfig-python-git
2 pkgver=20111203
3 pkgrel=1
4 pkgdesc="Compizconfig bindings for python - Latest Git Version"
5 arch=('i686' 'x86_64')
6 url="http://compiz.org"
7 license=('GPL')
8 provides=('compizconfig-python')
9 conflicts=('compizconfig-python')
10 depends=('compiz-core-git' 'libcompizconfig-git' 'glib2' 'python2')
11 makedepends=('intltool' 'pkgconfig' 'cython2')
13 _gitroot="git://git.compiz.org/compiz/compizconfig/compizconfig-python/"
14 _gitname=compizconfig-python
16 build() {
17   cd "${srcdir}"
18   msg "Connecting to GIT server...."
20   if [[ -d "${_gitname}" ]]; then
21     cd "${_gitname}" && git pull origin
22     msg "The local files are updated."
23   else
24     git clone "${_gitroot}" "${_gitname}"
25     cd "${_gitname}"
26   fi
28   env PKG_CONFIG_PATH="/usr/lib/pkgconfig:$PKG_CONFIG_PATH" \
29     python2 setup.py build
32 package() {
33   cd "${srcdir}"
34   cd "${_gitname}"
35   env PKG_CONFIG_PATH="/usr/lib/pkgconfig:$PKG_CONFIG_PATH" \
36     python2 setup.py install --prefix="/usr" --root="$pkgdir"