summaryrefslogtreecommitdiffstats
path: root/testing/strigi/APKBUILD
blob: e86531cb1b26f03ae3393fcf395d0409f60d7715 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=strigi
pkgver=0.7.2
pkgrel=0
pkgdesc="KDE desktop search software"
url="http://www.vandenoever.info/software/strigi/"
arch="all"
license="LGPL"
depends=
depends_dev="qt-dev exiv2-dev bzip2-dev zlib-dev libiconv-dev libxml2-dev"
makedepends="$depends_dev cmake automoc4"
install=""
subpackages="$pkgname-dev"
source="http://www.vandenoever.info/software/strigi/strigi-$pkgver.tar.bz2"

_builddir="$srcdir"/strigi-$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 -p "$_builddir"/build
}

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

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

md5sums="ca09ba176cf3ffe9afce4d92f38f9a85  strigi-0.7.2.tar.bz2"