1 # Contributor: Flamelab <panosfilip@gmail.com>
3 # Compiz PKGBUILDs are based on "some-guy"'s previous PKGBUILDs
5 # Put the desired install prefix HERE
9 pkgname=libcompizconfig-unity-git
12 pkgdesc="Compiz configuration system library. Package meant for use with Unity."
13 arch=('i686' 'x86_64')
14 url="http://compiz.org"
16 depends=('compiz-core-unity-git' 'libxml2')
17 makedepends=('intltool' 'pkgconfig' 'git' 'cmake')
19 options=('!emptydirs' '!libtool')
20 _gitroot='git://anongit.compiz.org/compiz/compizconfig/libcompizconfig'
21 _gitname='libcompizconfig'
22 provides=("libcompizconfig++")
24 # This is a developement version
27 # trick re-determining the build revision and, or entertain the hidden
28 # makepkg option --forcever, huh
29 if [ -z "${FORCE_VER}" ]; then
30 msg "Determining latest build revision..."
31 FORCE_VER=$(date +%Y%m%d)
37 msg "Connecting to GIT server...."
39 if [ -d ${_gitname} ] ; then
40 cd "${_gitname}" && git pull origin
41 msg "The local files are updated."
43 git clone ${_gitroot} ${_gitname}
46 msg "GIT checkout done or server timeout"
47 msg "Starting make..."
48 cd "${srcdir}/${_gitname}"
49 [[ -d build ]] || mkdir build
51 env PKG_CONFIG_PATH="${_iprefix}/lib/pkgconfig:$PKG_CONFIG_PATH" \
52 cmake .. -DCOMPIZ_PLUGIN_INSTALL_TYPE="compiz" \
53 -DCMAKE_INSTALL_PREFIX="${_iprefix}" \
54 -DCMAKE_BUILD_TYPE=Debug \
55 -DCOMPIZ_DESTDIR="${pkgdir}"
58 make findcompizconfig_install