aboutsummaryrefslogtreecommitdiffstats
path: root/testing/soprano/APKBUILD
blob: ffcda3cd9944f8030ff6b7ca12d0769e87182425 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=soprano
pkgver=2.6.0
pkgrel=5
pkgdesc="KDE RDF framework"
url="http://soprano.sourceforge.net/"
arch="all"
license="LGPL"
depends="shared-desktop-ontologies"
depends_dev="qt-dev raptor2-dev rasqal-dev redland-dev"
makedepends="$depends_dev cmake automoc4 doxygen"
install=""
subpackages="$pkgname-dev"
source="http://sourceforge.net/projects/soprano/files/Soprano/$pkgver/soprano-$pkgver.tar.bz2
	redland.patch"

_builddir="$srcdir"/soprano-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON \
		-DRAPTOR_INCLUDE_DIR=/usr/include/raptor2 "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="03ae49e87c6ec99e57d0433c2650846f  soprano-2.6.0.tar.bz2
0d13b3fd532b7173b9deea47ca89a4b7  redland.patch"