blob: a6aea8c2deb5448cc5ec524569fe0ce99435c2cc (
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
45
46
47
48
49
50
51
52
53
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=xapian-core
pkgver=1.2.22
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
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
libxapian() {
arch="all"
cd "$_builddir"
pkgdesc="Xapian search engine library"
install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/$subpkgname* "$subpkgdir"/usr/lib
}
md5sums="09c59290aa8f6b4ea73c3788636e44a5 xapian-core-1.2.22.tar.xz
689e6f6a15c61a229c558cbf91a656c1 timeval-t.patch"
sha256sums="269b87ca3faf79d444e8bb82ed58a96f1955008d7702f9966dec68608588527f xapian-core-1.2.22.tar.xz
3f28d677d08a1b75695ac7a010299762952043d04e14b52d352dda1c235c3427 timeval-t.patch"
sha512sums="cb6bd565eb307f9bc8f801fc9cda0cc6ad5d7cb8bf0af2ab6e42d48ca4ea4169f08621db810ab87d15957d0f873bcb0336e16b12fdb6026375d9c0192781e0d6 xapian-core-1.2.22.tar.xz
639c0ecd75be0627d334628b5adf581a7da92c4f86dfb86a92669368ff8a874d4bf4e344b8f3b1276d22d126d2bc44c8ab727e39e1c29c0358fe7bbc8aa8050d timeval-t.patch"
|