blob: 1faa5b8311feb2a89e8f4009a1a5eb407c6d36c3 (
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
|
pkgname=kenlm
pkgver=r2268.217e219
pkgrel=1
pkgdesc="Faster and Smaller Language Model Queries"
license=('LGPL')
arch=('x86_64')
url="https://kheafield.com/code/kenlm/"
depends=('boost-libs' 'python')
makedepends=('cmake' 'eigen' 'git' 'cython')
source=("git+https://github.com/kpu/kenlm.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/kenlm"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare () {
cd "$srcdir/kenlm/python"
cython kenlm.pyx --cplus
}
build() {
cd "$srcdir/kenlm"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON .
make
}
package() {
cd "$srcdir/kenlm"
make DESTDIR="$pkgdir" install
}
|