Skip to content

Instantly share code, notes, and snippets.

@buttercutter
Created July 20, 2018 14:54
Show Gist options
  • Save buttercutter/90dc35c6a6ac342e2678e4d0abbf5110 to your computer and use it in GitHub Desktop.
Save buttercutter/90dc35c6a6ac342e2678e4d0abbf5110 to your computer and use it in GitHub Desktop.
Arch Linux installation PKGBUILD for https://github.com/google/sentencepiece
# Maintainer: promach
_gitname=sentencepiece
pkgname=${_gitname}-git
pkgver=r288.df2c033
pkgrel=1
pkgdesc="SentencePiece is an unsupervised text tokenizer and detokenizer mainly for Neural Network-based text generation systems where the vocabulary size is predetermined prior to the neural model training."
arch=('x86_64')
url="https://github.com/google/sentencepiece.git"
license=('GPL')
depends=('autoconf' 'automake' 'libtool' 'pkg-config' 'protobuf')
makedepends=()
source=('git+https://github.com/google/sentencepiece.git')
md5sums=('SKIP')
pkgver() {
cd "${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${_gitname}"
./autogen.sh
./configure
make -j $(nproc)
make check
make PREFIX=/usr DESTDIR="$pkgdir" install
sudo ldconfig -v
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment