updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / soprano-git / PKGBUILD
blobd56d8fbc7035083298c2a97a6510b2644e21ff0e
1 # Contributor: Lawrence Lee <valheru@facticius.net>
2 pkgname=soprano-git
3 pkgver=20110721
4 pkgrel=1
5 pkgdesc="A library which provides a highly usable object-oriented C++/Qt4 framework for RDF data"
6 arch=('i686' 'x86_64')
7 url="http://soprano.sourceforge.net/"
8 license=('GPL')
9 depends=('qt' 'redland-storage-virtuoso' 'libiodbc' 'virtuoso')
10 makedepends=('cmake' 'doxygen' 'git')
11 conflicts=('soprano')
12 provides=('soprano')
13 groups=('kde4-git')
15 _gitroot="git://anongit.kde.org/soprano"
16 _gitname="soprano"
19 build() {
20   cd $srcdir
21   msg "Connecting to the GIT server...."
22   
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   if [[ -d ${srcdir}/build ]]; then
34     msg "Cleaning the previous build directory..."
35     rm -rf ${srcdir}/build
36   fi
37   mkdir $srcdir/build
38   cd $srcdir/build
39   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=release \
40                 -DCMAKE_SKIP_RPATH=OFF \
41                 -DCMAKE_INSTALL_PREFIX=/usr \
42                 -DSOPRANO_DISABLE_CLUCENE_INDEX=ON
43   make
46 package() {
47   cd ${srcdir}/build
48   make DESTDIR=${pkgdir} install