aboutsummaryrefslogtreecommitdiffstats
path: root/community/xapian-core/APKBUILD
blob: b14fdefe659d472a364f6803996daf6f40d46dc5 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=xapian-core
pkgver=1.4.3
pkgrel=0
pkgdesc="Open source search engine library"
url="http://www.xapian.org/"
arch="all"
license="GPL2+"
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

build() {
	cd "$builddir"
	./configure --prefix=/usr || return 1
	make || return 1
}

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

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

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

md5sums="143f72693219f7fc5913815ed858f295  xapian-core-1.4.3.tar.xz
689e6f6a15c61a229c558cbf91a656c1  timeval-t.patch"
sha256sums="7d5295511ca2de70463a29e75f6a2393df5dc1485bf33074b778c66e1721e475  xapian-core-1.4.3.tar.xz
3f28d677d08a1b75695ac7a010299762952043d04e14b52d352dda1c235c3427  timeval-t.patch"
sha512sums="f8da535c298a07828998d12a10c049eadcfbc36adf93c0744565bd6b4c7c49f4df3f402e50fb4abbe9384ccaeaf3499cce53bea90bf57d677ee5124e8621c74c  xapian-core-1.4.3.tar.xz
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d  timeval-t.patch"