updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / nepomuk-core-git / PKGBUILD
blob67de27b794acd021ecde873e53984841860a7ef4
1 pkgname=nepomuk-core-git
2 pkgver=20111027
3 pkgrel=1
4 pkgdesc='The core Nepomuk system'
5 arch=('i686' 'x86_64')
6 url='http://www.kde.org'
7 license=('LGPL')
8 depends=('kdelibs4-git')
9 makedepends=('cmake' 'git' 'doxygen')
10 conflicts=('nepomuk-core' 'kdebase-runtime')
11 provides=('nepomuk-core')
12 groups=('kde4-git')
14 _gitroot="git://anongit.kde.org/nepomuk-core"
15 _gitname="nepomuk-core"
17 build() {
18   cd $srcdir
19   msg "Connecting to the GIT server...."
20   
21   if [[ -d $srcdir/$_gitname ]] ; then
22     cd $_gitname
23     git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
28   
29   msg "GIT checkout done"
30   msg "Starting make..."
31   if [[ -d ${srcdir}/build ]]; then
32     msg "Cleaning the previous build directory..."
33     rm -rf ${srcdir}/build
34   fi
35   mkdir $srcdir/build
36   cd $srcdir/build
37   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull \
38                 -DCMAKE_INSTALL_PREFIX=/usr
39   make
42 package() {
43   cd ${srcdir}/build
44   make DESTDIR=${pkgdir} install