aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/strigi/APKBUILD
blob: 2b6f18e0f014bbfdc7c98645213b3f0247acfa34 (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
49
50
51
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=strigi
pkgver=0.7.8
pkgrel=2
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 libxml2-dev attr-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 \
	      -DCMAKE_INSTALL_LIBDIR=lib \
	      -DENABLE_CLUCENE=OFF \
	      -DENABLE_CLUCENE_NG=OFF \
	      -DENABLE_FFMPEG=OFF \
	      -DENABLE_LOG4CXX=OFF \
	      -DENABLE_FAM=OFF \
	      -DENABLE_QT4=ON \
	      "$_builddir" || return 1
	make || return 1
}

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

md5sums="d69443234f4286d71997db9de543331a  strigi-0.7.8.tar.bz2"
sha256sums="43e461a625acdefa59bf58cc9d10aebda9eba920dfbe800fc77e6dcbf1eff989  strigi-0.7.8.tar.bz2"
sha512sums="536f5bd5ed13d87d30c2fa31b6dcb2a883df173e5d60deefe0fdeb843f40f29f7edd0041029dc013bb31a205572087ed95ca661bcdf6d989d9806931716b1043  strigi-0.7.8.tar.bz2"