2 # Put the desired install prefix HERE
3 _iprefix=/opt/compiz-git
5 pkgname=libcompizconfig++
8 pkgdesc="Compiz configuration system library"
10 url="http://compiz.org"
12 depends=('compiz-core++' 'libxml2')
13 makedepends=('intltool' 'pkgconfig' 'git' 'cmake')
15 options=('!emptydirs' '!libtool')
16 _gitroot='git://anongit.compiz.org/compiz/compizconfig/libcompizconfig'
17 _gitname='libcompizconfig'
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 [[ -d build ]] || mkdir build
46 env PKG_CONFIG_PATH="${_iprefix}/lib/pkgconfig:$PKG_CONFIG_PATH" \
47 cmake .. -DCOMPIZ_PLUGIN_INSTALL_TYPE="compiz" \
48 -DCMAKE_INSTALL_PREFIX="${_iprefix}" \
49 -DCMAKE_BUILD_TYPE=Debug \
50 -DCOMPIZ_DESTDIR="${pkgdir}"
53 make findcompizconfig_install