aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xapian-omega/APKBUILD
blob: 4efd229fc7059bfa44f6f9acfd4681ad5ff0c9da (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=xapian-omega
pkgver=1.2.17
pkgrel=1
pkgdesc="Indexers and CGI search frontend for Xapian"
url="http://www.xapian.org/"
arch="all"
license="GPL2+"
depends=""
depends_dev="xapian-core-dev perl-dev pcre-dev zlib-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://oligarchy.co.uk/xapian/${pkgver}/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	sed -i -e "s/std::getchar/getchar/g" urldecode.h
	sed -i -e "s/template_dir.*/template_dir \/usr\/share\/omega\/templates/g" omega.conf
}

build() {
	cd "$_builddir"
	./configure XAPIAN_CONFIG=/usr/bin/xapian-config \
		--prefix=/usr \
		--sysconfdir=/etc/$pkgname \
		--enable-static=no 
	make || return 1
}

package() {
	local f
	cd "$_builddir"
	make DESTDIR=$pkgdir install || return 1
	install -Dm755 "$srcdir"omega.conf "$pkgdir"/etc/$pkgname/omega.conf
	mkdir -p "$pkgdir"/var/log/omega
	mkdir -p "$pkgdir"/var/lib/omega/cdb
	mkdir -p "$pkgdir"/var/lib/omega/data
	for f in templates images; do
    		install -d "$pkgdir"/usr/share/omega/$f && cp -ar $f/* "$pkgdir"/usr/share/omega/$f ;
	done
}

md5sums="d6cb99c7ef5664c8995627d390b90039  xapian-omega-1.2.17.tar.xz"
sha256sums="0e1b7a41df61d0953159f9fe27ff0c9a584a94c6a7b039f19c07b5454ac8118c  xapian-omega-1.2.17.tar.xz"
sha512sums="05a316e20b753308b1beb9b2d1d7a33b93c6f8dfe218d6dfb49496d4cdbc6c5a8cd4a1e8c1402d5eedeadc0c47c77e03ba7b32c46ae7c55463142b02b8cd70f0  xapian-omega-1.2.17.tar.xz"