contrib/snowball/Pkgfile

24 lines
632 B
Plaintext
Raw Normal View History

2019-06-11 23:45:49 +02:00
# Description: String processing language for creating stemming algorithms
2020-06-19 19:02:29 +02:00
# URL: https://snowballstem.org/
2019-06-11 23:45:49 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:
2019-06-11 23:45:49 +02:00
name=snowball
2021-11-11 11:51:43 +01:00
version=2.2.0
2019-06-11 23:45:49 +02:00
release=1
source=(https://github.com/snowballstem/snowball/archive/v$version/$name-$version.tar.gz
dynamiclib.patch)
2019-06-11 23:45:49 +02:00
build() {
cd $name-$version
2019-06-11 23:45:49 +02:00
patch -Np1 -i ../dynamiclib.patch
make
2021-11-11 11:51:43 +01:00
install -d $PKG/usr/{bin,lib}
2019-06-11 23:45:49 +02:00
install -t $PKG/usr/bin snowball stemwords
install -Dm644 {.,$PKG/usr}/include/libstemmer.h
2021-11-11 11:51:43 +01:00
ln -s libstemmer.so.* $PKG/usr/lib/
2019-06-11 23:45:49 +02:00
ln -s libstemmer.so.0 $PKG/usr/lib/libstemmer.so
}