Created
July 20, 2018 14:54
-
-
Save buttercutter/90dc35c6a6ac342e2678e4d0abbf5110 to your computer and use it in GitHub Desktop.
Arch Linux installation PKGBUILD for https://github.com/google/sentencepiece
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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