summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36aa5a8efe9dcf3aebcbaa3d8c279bd1c8c233f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Dimitri Merejkowsky <d.merej@gmail.com>

pkgname=soprano-qt5-git
pkgver=v2.9.3.90.g3e00d37
pkgrel=4
pkgdesc="A library which provides a highly usable object-oriented C++/Qt5 framework for RDF data"
arch=('i686' 'x86_64')
url='http://www.kde.org'
license=('LGPL')
depends=('qt5-base' 'libiodbc' 'redland')
makedepends=('cmake' 'doxygen' 'git')
optdepends=('virtuoso')
conflicts=('soprano' 'soprano-qt5')
provides=('soprano' 'soprano-qt5')
groups=('kde-git')
source=('git://anongit.kde.org/soprano'
        '0001-Properly-export-plugins-when-using-Qt5.patch')
md5sums=('SKIP'
         '2b844cc3abe7574691aeb4083c5cec22')

pkgver() {
  cd soprano
  git describe --always | sed 's|-|.|g'
}

prepare() {
  rm -fr build
  mkdir -p build

  cd soprano
  patch -p1 < ../0001-Properly-export-plugins-when-using-Qt5.patch
}

build() {
  cd build
  cmake ../soprano \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_TESTING=OFF \
    -DQT5_BUILD=ON \
    -DSOPRANO_DISABLE_CLUCENE_INDEX=ON
  make
}

package() {
  make -C build DESTDIR="${pkgdir}" install
}