2019-06-11 23:45:49 +02:00
|
|
|
# Description: String processing language for creating stemming algorithms
|
2020-06-19 17:02:29 +00:00
|
|
|
# URL: https://snowballstem.org/
|
2019-06-11 23:45:49 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
|
|
|
|
name=snowball
|
2021-11-11 11:51:43 +01:00
|
|
|
version=2.2.0
|
2023-09-07 17:13:45 +02:00
|
|
|
release=3
|
2020-01-26 21:39:26 +01:00
|
|
|
source=(https://github.com/snowballstem/snowball/archive/v$version/$name-$version.tar.gz
|
|
|
|
dynamiclib.patch)
|
2019-06-11 23:45:49 +02:00
|
|
|
|
|
|
|
build() {
|
2021-11-11 18:07:16 +01:00
|
|
|
cd $name-$version
|
|
|
|
patch -Np1 -i ../dynamiclib.patch
|
2019-06-11 23:45:49 +02:00
|
|
|
|
2021-11-11 18:07:16 +01:00
|
|
|
make
|
2019-06-11 23:45:49 +02:00
|
|
|
|
2021-11-11 18:07:16 +01:00
|
|
|
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
|
2023-09-07 17:13:45 +02:00
|
|
|
# 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
|
2019-06-11 23:45:49 +02:00
|
|
|
}
|