updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kanban-git / PKGBUILD
blob6e6771cd9d98697f980549ab0adc7de17660d022
1 # Mantainer: aleixpol@kde.org
3 pkgname=kanban-git
4 _pkgname=kanban
5 pkgver=20100808
6 pkgrel=1
7 pkgdesc="A sync'able task management application that works everywhere"
8 url="http://gitorious.org/kanban/"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 depends=('kdelibs')
12 makedepends=('cmake' 'git' 'automoc4')
13 conflicts=('kanban')
15 _gitroot='git://gitorious.org/kanban/mainline.git'
16 _gitname='kanban'
18 build() {
19     cd "$srcdir"
20     msg "Connecting to gitorious GIT server...."
21     if [ -d ${srcdir}/$_gitname ] ; then
22         cd $_gitname
23         git pull . master
24         git submodule update --init
25         msg "The local files are updated."
26     else
27         git clone $_gitroot $_gitname
28         cd $_gitname
29         git submodule update --init
30     fi
31     msg "GIT checkout done."
33     cd ..
34     if [ -d build ] ; then
35         rm -rf build
36     fi
37     mkdir build
38     cd build
39     cmake ${srcdir}/$_gitname \
40     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
41     -DCMAKE_BUILD_TYPE=Release || return 1
42     make || return 1
43     make DESTDIR=$startdir/pkg install