summaryrefslogblamecommitdiff
path: root/user/xapian-core/APKBUILD
blob: a0b70daacfa7eeb6529b08d1b46161e18332f55c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
             



                                           
                                                      

















                                                                     










                                         
                                                


           










                                                              
                                                                                                                                                                       
                                                                                                                                                  
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: 
pkgname=xapian-core
pkgver=1.4.11
pkgrel=0
pkgdesc="Open source search engine library"
url="https://xapian.org/"
arch="all"
options="!check"  # sortableserialise1 is still broken
license="GPL-2.0+"
depends=""
depends_dev="zlib-dev util-linux-dev"
makedepends="$depends_dev libtool"
subpackages="$pkgname-dev $pkgname-doc libxapian"
source="http://oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.xz
	timeval-t.patch"

case "$CARCH" in
armhf) options="!check" ;; # FIXME
s390x) 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 AUTOMATED_TESTING=1 VALGRIND= check
}

package() {
	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="72ab7b0c774390f38319d241689b2dc3c2837fbbf933616574f6ad167f14a25c2eff747910022065508dc7c44f806dc2b71dae80a1b4f1f47e1675fb951bc785  xapian-core-1.4.11.tar.xz
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d  timeval-t.patch"