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


                                                           
             



                                           
                                                      





                                                                     

                       





                     










                                         
                                                


           





                                              



                                                              
                                                                                                                                                                       
                                                                                                                                                  
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: 
pkgname=xapian-core
pkgver=1.4.16
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
	"

# 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"

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

sha512sums="3d319ab672485e840019ee28b54b1c59bbd535c1802874f58593fb999681c19bff3e776dc19ab5d5bd97734bf01f1408f36ae49e21ca9706ca187db49f8a18a6  xapian-core-1.4.16.tar.xz
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d  timeval-t.patch"