aboutsummaryrefslogtreecommitdiffstats
path: root/community/xapian-omega/APKBUILD
blob: 2748bcbec9e5e6c70c889570e2e1ce2419facaaf (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=xapian-omega
pkgver=1.4.3
pkgrel=0
pkgdesc="Indexers and CGI search frontend for Xapian"
url="http://www.xapian.org/"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev xapian-core-dev perl-dev pcre-dev zlib-dev file-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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/$pkgname \
		--enable-static=no 
	make || return 1
}

package() {
	local f
	cd "$_builddir"
	make DESTDIR=$pkgdir install || return 1
	install -Dm755 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="44b5618d6e9e53e25cbae8296db9a391  xapian-omega-1.4.3.tar.xz"
sha256sums="2eea0344a0703ba379d845b86d08a9c2e9faf0deb21834d9ea6939b712c6216e  xapian-omega-1.4.3.tar.xz"
sha512sums="4d74a45e868eccbe18e5d4230b85c1a1f67fa9847b97cb7c367ece5f1a4e054fdfbdfbbe7600e0598253f022089be06bdca3d15f1655335c0985794b5ba9f040  xapian-omega-1.4.3.tar.xz"