updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libcompizconfig-unity-git / PKGBUILD
blob0731a390fc14b2497dc778d5005f48efcb638b54
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
9 pkgname=libcompizconfig-unity-git
10 pkgver=20110210
11 pkgrel=1
12 pkgdesc="Compiz configuration system library. Package meant for use with Unity."
13 arch=('i686' 'x86_64')
14 url="http://compiz.org"
15 license=('GPL')
16 depends=('compiz-core-unity-git' 'libxml2')
17 makedepends=('intltool' 'pkgconfig' 'git' 'cmake')
18 source=()
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
25 OPTIONS=(!strip)
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)
34 build()
36         cd "${srcdir}"
37         msg "Connecting to GIT server...."
39         if [ -d ${_gitname} ] ; then
40                 cd "${_gitname}" && git pull origin
41                 msg "The local files are updated."
42         else
43                 git clone ${_gitroot} ${_gitname}
44         fi
46         msg "GIT checkout done or server timeout"
47         msg "Starting make..."
48         cd "${srcdir}/${_gitname}"
49         [[ -d build ]] || mkdir build
50         cd 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}"
56         make
57         make install
58         make findcompizconfig_install