updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / compizconfig-backend-gsettings-git / PKGBUILD
blobb5f4c7736a31bf9e4f9a612e5cbccad3b3a59fe7
1 pkgname=compizconfig-backend-gsettings-git
2 pkgver=20110827
3 pkgrel=2
4 pkgdesc="GSettings backend for compizconfig - Latest Git Version"
5 url="http://www.compiz.org/"
6 license=('GPL' 'LGPL' 'MIT')
7 arch=('i686' 'x86_64')
8 depends=('libcompizconfig-git')
9 makedepends=('intltool' 'cmake')
10 provides=('compizconfig-backend-gsettings')
11 conflicts=('compizconfig-backend-gsettings')
13 _gitroot="git://git.compiz.org/compiz/compizconfig/compizconfig-backend-gsettings/"
14 _gitname=compizconfig-backend-gsettings
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [[ -d "${_gitname}" ]]; then
21     cd "${_gitname}" && git pull origin
22     msg "The local files are updated."
23   else
24     git clone "${_gitroot}" "${_gitname}"
25     cd "${_gitname}"
26   fi
28   [[ -d build ]] || mkdir build
29   cd build
30   cmake .. \
31     -DCMAKE_INSTALL_PREFIX=/usr \
32     -DCOMPIZ_DESTDIR="${pkgdir}"
33   make
36 package() {
37   cd "${srcdir}"
38   cd "${_gitname}"
39   cd build
40   make install
42   rm -f "${pkgdir}/usr/share/glib-2.0/schemas/gschemas.compiled"