updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / basket-git / PKGBUILD
blobcb5879da20b009ac129f241c4791c28ac8157e29
1 # Contributor: Marius Dransfeld <marius.dransfeld@googlemail.com>
2 pkgname=basket-git
3 pkgver=20100718
4 pkgrel=1
5 pkgdesc="All-purpose notes taker for KDE - git version."
6 arch=(i686 x86_64)
7 url="http://gitorious.org/basket"
8 license=('GPL')
9 provides=()
10 depends=('kdelibs>=4.4' 'qimageblitz' 'gpgme')
11 makedepends=('cmake>=2.6.2' 'automoc4' 'git')
12 conflicts=('basket')
13 source=()
14 md5sums=()
16 _gitroot="git://gitorious.org/basket/basket.git"
17 _gitname="basket"
19 build() {
20     cd $srcdir
21     msg "Connecting to the GIT server...."
23     if [[ -d $srcdir/$_gitname ]] ; then
24         cd $_gitname
25         git pull origin
26         msg "The local files are updated."
27     else
28         git clone $_gitroot
29     fi
30     
31     msg "GIT checkout done"
32     msg "Starting make..."
33     
34     rm -rf $srcdir/$_gitname-build
35     mkdir $srcdir/$_gitname-build
36     cd $srcdir/$_gitname-build
38     cmake -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) -DCMAKE_BUILD_TYPE=Release ../$_gitname || return 1
40     make || return 1
41     make DESTDIR=$startdir/pkg install || return 1