contrib/snowball/Pkgfile

26 lines
742 B
Plaintext

# Description: String processing language for creating stemming algorithms
# URL: https://snowballstem.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
name=snowball
version=2.2.0
release=3
source=(https://github.com/snowballstem/snowball/archive/v$version/$name-$version.tar.gz
dynamiclib.patch)
build() {
cd $name-$version
patch -Np1 -i ../dynamiclib.patch
make
install -d $PKG/usr/{bin,lib}
install -t $PKG/usr/bin snowball stemwords
install -Dm644 {.,$PKG/usr}/include/libstemmer.h
install libstemmer.a $PKG/usr/lib
# dynamiclib.patch already puts into $PWD the shared libs
# libstemmer.so.$version and two symlinks to it, so just copy them
# (without dereferencing)
cp -P libstemmer.so* $PKG/usr/lib
}