updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / compizconfig-python-unity-git / PKGBUILD
blobde344691260a6bb3892f30ac6413bdc9072f2b63
1 # Contributor: Flamelab <panosfilip@gmail.com>
3 # Compiz PKGBUILDs are based on "some-guy"'s previous PKGBUILDs
5 # Put the desired install prefix HERE
6 _iprefix=/opt/unity
8 pkgname=compizconfig-python-unity-git
9 pkgver=20110210
10 pkgrel=1
11 pkgdesc="Compizconfig bindings for python. Package meant for use with Unity."
12 arch=('i686' 'x86_64')
13 url="http://opencompositing.org"
14 license=('GPL')
15 depends=('compiz-core-unity-git' 'libcompizconfig-unity-git' 'glib2' 'python2')
16 makedepends=('intltool' 'pkgconfig' 'git' 'cython-old')
17 source=()
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)
30 build()
32         msg 'Connecting to GIT server....'
34         if [[ -d $_gitname ]] ; then
35                 cd "$_gitname" && git pull origin
36                 msg 'The local files are updated.'
37         else
38                 git clone "$_gitroot" "$_gitname"
39         fi
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"