updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / nnotes-git / PKGBUILD
blobf428fbf23bcf2293d14336c537f6e96254bd494c
1 # Maintainer: birdflesh <antkoul at gmail dot com>
3 pkgname=nnotes-git
4 pkgver=20110902
5 pkgrel=1
6 pkgdesc="Nepomuk Notes (nnotes) is a note taking application which uses Nepomuk as a backend"
7 arch=('i686' 'x86_64')
8 url="http://vhanda.in/blog/category/nepomuk"
9 license=('GPL')
10 depends=('kdebase-runtime')
11 makedepends=('git' 'cmake' 'automoc4')
13 _gitroot="git://anongit.kde.org/scratch/vhanda/nnotes.git"
14 _gitname="nnotes"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/build"
31   mkdir "$srcdir/build"
32   cd "$srcdir/build"
34   cmake ../${_gitname} \
35     -DCMAKE_BUILD_TYPE=Release \
36     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
37   make
40 package() {
41   cd "$srcdir/build"
42   make DESTDIR="$pkgdir" install
43