updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kde-gtk-config-git / PKGBUILD
blob3768ef2f8edaf676a8ce433c55f4e4a33fcec682
1 # Contributor: vicky91 <vickypaiers@gmail.com>
2 # Maintainer: vicky91 <vickypaiers@gmail.com>
3 pkgname=kde-gtk-config-git
4 pkgver=20111229
5 pkgrel=1
6 pkgdesc="Configures the GTK look&feel in your system."
7 arch=('i686' 'x86_64')
8 url="https://projects.kde.org/projects/playground/base/kde-gtk-config"
9 license=('GPL')
10 depends=('kdebase-runtime' )
11 makedepends=('git' 'automoc4' 'cmake' 'gettext' 'gtk2' 'gtk3')
12 conflicts=('chakra-gtk-config' 'chakra-gtk-config-git' )
13 install=${pkgname}.install
15 _gitroot='git://anongit.kde.org/kde-gtk-config'
16 _gitname='kde-gtk-config'
18 build() {
19   cd "${srcdir}"
20   msg "Connecting to GIT server...."
22   if [[ -d "${_gitname}" ]]; then
23     cd "${_gitname}" && git pull origin
24     msg "The local files are updated."
25   else
26     git clone "${_gitroot}" "${_gitname}"
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting build..."
32   rm -rf "${srcdir}/${_gitname}-build"
33   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
34   cd "${srcdir}/${_gitname}-build"
36   cmake . -DCMAKE_INSTALL_PREFIX=/usr
37   make
40 package() {
41   cd "${srcdir}/${_gitname}-build"
42   make DESTDIR="${pkgdir}/" install