updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dob-plasmoid-git / PKGBUILD
blob6185ea2a3b54374c5c2e5526e1db25d99d089135
1 # Maintainer: Vadim Bubnov <vadim@moinet.ru>
3 pkgname=dob-plasmoid-git
4 pkgver=20100223
5 pkgrel=2
6 pkgdesc="Desktop OBserver plasmoid for kde 4.4"
8 arch=('i686' 'x86_64')
9 url='http://wiki.github.com/bvadim/dob-plasmoid/'
10 license=('GPL')
11 depends=('kdebase-workspace')
12 makedepends=('git' 'pkgconfig' 'cmake' 'libxml2')
13 #optdepends=('')
14 conflicts=($_pkgname)
15 #provides=()
16 #replaces=('')
17 source=()
18 md5sums=()
20 _gitroot="git://github.com/bvadim/dob-plasmoid.git"
21 _gitname="dob-plasmoid"
23 build() {
24     cd ${srcdir}
26     msg "Connecting to GIT server..."
27     if [ -d ${srcdir}/$_gitname ] ; then
28         cd $_gitname && git pull origin
29         msg "The local files are updated."
30     else
31         git clone $_gitroot
32     fi
34     msg "GIT checkout done or server timeout"
35     msg "Starting make..."
36     
37     rm -rf ${srcdir}/$_gitname-build
38     mkdir ${srcdir}/$_gitname-build
39     cd ${srcdir}/$_gitname-build
40         cmake ${srcdir}/$_gitname -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
42     make || return 1
45 package() {
46         cd ${srcdir}/$_gitname-build
47         make DESTDIR=$pkgdir install