summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29acd986a8a00a8645188af7dcc06451b6151965 (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
# Maintainer: panoskanavos<at>gmail<dot>com 
_pkgname=sentencepiece
pkgname=${_pkgname}-git
pkgver=r492.ffa2c82
pkgrel=1
epoch=
pkgdesc="Unsupervised text tokenizer for Neural Network-based text generation"
arch=('x86_64')
url="https://github.com/google/sentencepiece"
license=('Apache')
groups=()
depends=()
makedepends=('git' 'cmake' 'gcc')
checkdepends=()
optdepends=('gperftools')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/google/${_pkgname}.git")
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	mkdir -p ${_pkgname}/build
	cd ${_pkgname}/build
	cmake ..
	make -j $(nproc)
}

package() {
	cd "$_pkgname/build"
	make DESTDIR="$pkgdir/" install
}