# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=xapian-core pkgver=1.4.13 pkgrel=1 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/$pkgname-$pkgver.tar.xz timeval-t.patch" case "$CARCH" in arm*) 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 VALGRIND= -C "$builddir" check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } libxapian() { pkgdesc="Xapian search engine library" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/$subpkgname* "$subpkgdir"/usr/lib } sha512sums="aa7b2262dd9d631339131e814f7c96acd85e386a4c4b6331eff86fc7227663589132779bd6b8c340a2b6f19bd66f8b53acbbe5bc985c74f9bdbe3ce3ccf4c1e7 xapian-core-1.4.13.tar.xz 639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d timeval-t.patch"