2 # Put the desired install prefix HERE
3 _iprefix=/opt/compiz-git
5 pkgname=compizconfig-python++
8 pkgdesc="Compizconfig bindings for python"
10 url="http://opencompositing.org"
12 depends=('compiz-core++' 'libcompizconfig++' 'glib2' 'python2')
13 makedepends=('intltool' 'pkgconfig' 'git' 'cython')
15 _gitroot="git://anongit.compiz.org/compiz/compizconfig/compizconfig-python"
16 _gitname="compizconfig-python"
18 # This is a developement version
21 # trick re-determining the build revision and, or entertain the hidden
22 # makepkg option --forcever, huh
23 if [ -z "${FORCE_VER}" ]; then
24 msg "Determining latest build revision..."
25 FORCE_VER=$(date +%Y%m%d)
30 msg 'Connecting to GIT server....'
32 if [[ -d $_gitname ]] ; then
33 cd "$_gitname" && git pull origin
34 msg 'The local files are updated.'
36 git clone "$_gitroot" "$_gitname"
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
41 cd "${srcdir}/${_gitname}"
42 env PKG_CONFIG_PATH="$_iprefix/lib/pkgconfig:$PKG_CONFIG_PATH" \
43 python2 setup.py build
44 env PKG_CONFIG_PATH="$_iprefix/lib/pkgconfig:$PKG_CONFIG_PATH" \
45 python2 setup.py install --prefix="$_iprefix" --root="$pkgdir"