2 # Put the desired install prefix HERE
3 _iprefix=/opt/compiz-git
8 pkgdesc="Compizconfig Settings Manager in Python"
10 url="http://opencompositing.org"
12 depends=('compiz-core++' 'compizconfig-python++' 'pygtk')
15 install="ccsm++.install"
16 _gitroot="git://anongit.compiz.org/compiz/compizconfig/ccsm"
19 # This is a developement version
22 # trick re-determining the build revision and, or entertain the hidden
23 # makepkg option --forcever, huh
24 if [ -z "${FORCE_VER}" ]; then
25 msg "Determining latest build revision..."
26 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 python2 setup.py build --prefix=${_iprefix}
45 python2 setup.py install --prefix=${_iprefix} --root=${pkgdir}
49 exec env LD_LIBRARY_PATH=\$PREFIX/lib/ PYTHONPATH=\$PREFIX/lib/python2.7/site-packages \$PREFIX/bin/ccsm
51 install -m755 ccsm-git ${pkgdir}${_iprefix}/bin/
52 mkdir -p "$pkgdir/usr/bin"
53 ln -s "${_iprefix}/bin/ccsm-git" "$pkgdir/usr/bin/ccsm-git"
54 sed -i "s|@prefix@|${_iprefix}|g" "${startdir}/${install}"