aboutsummaryrefslogtreecommitdiffstats
path: root/community/xapian-core/APKBUILD
blob: 4a3206de57d91b318542c2086c8cf2bea66c11c7 (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
52
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=xapian-core
pkgver=1.4.15
pkgrel=0
pkgdesc="Open source search engine library"
url="http://www.xapian.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="zlib-dev util-linux-dev libtool"
subpackages="$pkgname-dev $pkgname-doc libxapian"
source="http://oligarchy.co.uk/xapian/$pkgver/xapian-core-$pkgver.tar.xz
	timeval-t.patch"

case "$CARCH" in
arm*) options="!check" ;; # FIXME
s390x) options="!check" ;; # FIXME
mips*) options="!check" ;; # FIXME
esac

# secfixes:
#   1.4.6-r0:
#     - CVE-2018-0499

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make VALGRIND= -C "$builddir" check
}

package() {
	make DESTDIR="$pkgdir" install
}

libxapian() {
	pkgdesc="Xapian search engine library"

	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/$subpkgname* "$subpkgdir"/usr/lib
}

sha512sums="f28209acae12a42a345382668f7f7da7a2ce5a08362d0e2af63c9f94cb2adca95366499a7afa0bd9008fbfcca4fd1f2c9221e594fc2a2c740f5899e9f03ecad3  xapian-core-1.4.15.tar.xz
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d  timeval-t.patch"