aboutsummaryrefslogtreecommitdiffstats
path: root/community/xapian-omega/APKBUILD
blob: cd444dca9f990c20a0c03e7550178d07fe475111 (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.22
pkgrel=0
pkgdesc="Indexers and CGI search frontend for Xapian"
url="http://www.xapian.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="$depends_dev xapian-core-dev perl-dev pcre2-dev zlib-dev file-dev"
subpackages="$pkgname-doc"
source="http://oligarchy.co.uk/xapian/$pkgver/xapian-omega-$pkgver.tar.xz
disable-omegatest-faketime-ismissing.patch"

prepare() {
	default_prepare
	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() {
	./configure XAPIAN_CONFIG=/usr/bin/xapian-config \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/$pkgname \
		--enable-static=no
	make
}

check() {
	make check
}

package() {
	local f
	make DESTDIR=$pkgdir install
	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
}

sha512sums="
460120fa2c76ad99f818f4183c4ded92eaa7f01a9dd782af1e93faf11caf2479053f45a9e9f0a602bf31631dba8be2d2c18bba28340c578126e8658ad4937c19  xapian-omega-1.4.22.tar.xz
bc04b93a178c45438c34269e28638bebe16ebfcfb12959fb101ea16f47cf514ba2330c9b9ac45dc4660d55acad936ff1bfbdcafcc7acf115cd85de077d096cea  disable-omegatest-faketime-ismissing.patch
"