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

case "$CARCH" in
armhf) options="!check" ;; # FIXME
s390x) options="!check" ;; # FIXME
esac

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

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

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

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

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

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

sha512sums="1af23815ff9358d6407723d1a7d3dc00df8f45f4808ccaa4c57f38197763fdc2d62cb7b080fab737408db42ced85707021eac881d80767248ea22aff8a2e4aa3  xapian-core-1.4.9.tar.xz
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d  timeval-t.patch"