1 # Contributor: Flamelab <panosfilip@gmail.com>
3 # Compiz PKGBUILDs are based on "some-guy"'s previous PKGBUILDs
5 # Put the desired install prefix HERE
8 pkgname=compizconfig-python-unity-git
11 pkgdesc="Compizconfig bindings for python. Package meant for use with Unity."
12 arch=('i686' 'x86_64')
13 url="http://opencompositing.org"
15 depends=('compiz-core-unity-git' 'libcompizconfig-unity-git' 'glib2' 'python2')
16 makedepends=('intltool' 'pkgconfig' 'git' 'cython-old')
18 _gitroot="git://anongit.compiz.org/compiz/compizconfig/compizconfig-python"
19 _gitname="compizconfig-python"
20 provides=("compizconfig-python++")
23 # trick re-determining the build revision and, or entertain the hidden
24 # makepkg option --forcever, huh
25 if [ -z "${FORCE_VER}" ]; then
26 msg "Determining latest build revision..."
27 FORCE_VER=$(date +%Y%m%d)
32 msg 'Connecting to GIT server....'
34 if [[ -d $_gitname ]] ; then
35 cd "$_gitname" && git pull origin
36 msg 'The local files are updated.'
38 git clone "$_gitroot" "$_gitname"
41 msg "GIT checkout done or server timeout"
42 msg "Starting make..."
43 cd "${srcdir}/${_gitname}"
44 env PKG_CONFIG_PATH="$_iprefix/lib/pkgconfig:$PKG_CONFIG_PATH" \
45 python2 setup.py build
46 env PKG_CONFIG_PATH="$_iprefix/lib/pkgconfig:$PKG_CONFIG_PATH" \
47 python2 setup.py install --prefix="$_iprefix" --root="$pkgdir"