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


                                                           
             



                                           




                                                 

                                                                      

                       





                     










                                         
                                                


           





                                              



                                                              

                                                                                                                                                                       
                                                                                                                                                  
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: 
pkgname=xapian-core
pkgver=1.4.25
pkgrel=0
pkgdesc="Open source search engine library"
url="https://xapian.org/"
arch="all"
license="GPL-2.0+"
depends=""
depends_dev="zlib-dev util-linux-dev"
makedepends="$depends_dev libtool"
subpackages="$pkgname-dev $pkgname-doc libxapian"
source="https://oligarchy.co.uk/xapian/$pkgver/$pkgname-$pkgver.tar.xz
	sortable-serialise.patch
	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="e8069f2cb75554978716a99580fb57fc73bbdd607c82394f53d07205d8c78fb59265004be0c676a6806bb2840a3933499dfc867e36a28855278569a0676d469d  xapian-core-1.4.25.tar.xz
d5c6dac118b96ed66ce7d01c0d8c41b4765397e56fec5ea64cd1d223e4d152c9bb9171bbd8bd804d1285103850ae8a1d21fe137e906da94c42b421b0e6e2a49a  sortable-serialise.patch
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d  timeval-t.patch"