updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / oxygen-gtk-git / PKGBUILD
blob96ea74c0bc86c5ce9a689970c3fda38680ccdc4b
1 #Maintainer: Jekyll Wu < adaptee [at] gmail [dot] com>
2 #Contributor: Zephyr
4 pkgname=oxygen-gtk-git
5 pkgver=20111110
6 pkgrel=1
7 pkgdesc="Port of the Oxygen theme to gtk"
8 arch=('i686' 'x86_64')
9 url="https://projects.kde.org/projects/playground/artwork/oxygen-gtk"
10 license=('LGPL')
11 depends=('gtk2' 'dbus-glib')
12 makedepends=('git' 'cmake')
13 conflicts=('oxygen-gtk')
14 provides=('oxygen-gtk')
16 _gitroot="git://anongit.kde.org/oxygen-gtk"
17 _gitname="oxygen-gtk"
19 build() {
20   cd "${srcdir}"
21   msg "Connecting to GIT server...."
23   if [ -d ${_gitname} ] ; then
24     cd ${_gitname} && git pull origin
25     msg "The local files are updated."
26   else
27     git clone ${_gitroot} ${_gitname}
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "${srcdir}/${_gitname}-build"
34   git clone -l "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
35   cd "${srcdir}/${_gitname}-build"
37   cmake -DCMAKE_INSTALL_PREFIX=/usr \
38         -DCMAKE_BUILD_TYPE=Release \
39         ../${_gitname}
40   make
41   make DESTDIR=${pkgdir} install
42   rm -rf "${srcdir}/${_gitname}-build"