aboutsummaryrefslogtreecommitdiffstats
path: root/community/xapian-core/APKBUILD
blob: f33cab63019d497ea854b05ce55467875ad8a419 (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
53
54
55
56
57
58
59
60
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=xapian-core
pkgver=1.4.24
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
	disable-failing-tests.patch"

# FIXME: On armhf the sortableserialise1 test case fails.
case "$CARCH" in
armhf) options="!check" ;;
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() {
	# Set AUTOMATED_TESTING here to skip tests which rely
	# heavily on timing and may thus fail the face of uneven
	# loads etc.
	#
	# See https://trac.xapian.org/ticket/764#comment:2
	make AUTOMATED_TESTING=1 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="
2b156dd90784264d6bf64e66aca559578f946c013bb52e14e56fcd96e9c2fece71c236735b13d2baad0d7f2d410dea3ae54c94cd80f735baf1071bafe2e5c01c  xapian-core-1.4.24.tar.xz
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d  timeval-t.patch
a1a98befc36e148dce1f95b1f3b722d5d3d6d410575ce3d0b7d468f9596034d23b1fca47ec432ad03437ecd1eb09f0fc8d386340d266706766e067e0d1f24380  disable-failing-tests.patch
"