-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
52 lines (44 loc) · 1.05 KB
/
PKGBUILD
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
# Maintainer: Markus Blöchl <[email protected]>
_name=xapian-python3
pkgname=$_name-git
pkgver=git
pkgrel=1
pkgdesc="Open source search engine library with python3 and lua bindings"
arch=('x86_64')
url="http://www.xapian.org"
license=('GPL')
groups=()
depends=('lua' 'python>=3.5')
makedepends=('git' 'cmake' 'zlib' 'libutil-linux' 'help2man' 'graphviz' 'perl' 'tcl' 'python-docutils' 'python-sphinx')
provides=("$_name" xapian-core)
conflicts=("$_name" xapian-core)
replaces=()
backup=()
options=()
install=
source=("$_name::git+https://github.com/xapian/xapian")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_name"
}
build() {
cd "$srcdir/$_name"
touch xapian-letor/.nobootstrap
touch xapian-applications/omega/.nobootstrap
./bootstrap
./configure --prefix=/usr --with-python3 --with-lua
make all
}
check() {
cd "$srcdir/$_name"
make -k check
}
package() {
cd "$srcdir/$_name"
make DESTDIR="$pkgdir/" install
}