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
|
2020-01-26 21:39:26 +01:00
|
|
|
# Depends on:
|
2019-06-11 23:45:49 +02:00
|
|
|
|
|
|
|
name=snowball
|
2021-01-23 11:13:10 +00:00
|
|
|
version=2.1.0
|
2019-06-11 23:45:49 +02:00
|
|
|
release=1
|
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() {
|
2020-01-26 21:39:26 +01:00
|
|
|
cd $name-$version
|
2019-06-11 23:45:49 +02:00
|
|
|
patch -Np1 -i ../dynamiclib.patch
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
install -d $PKG/usr/bin
|
|
|
|
install -t $PKG/usr/bin snowball stemwords
|
|
|
|
install -Dm644 {.,$PKG/usr}/include/libstemmer.h
|
|
|
|
install -D {.,$PKG/usr/lib}/libstemmer.so.0.0.0
|
|
|
|
ln -s libstemmer.so.0.0.0 $PKG/usr/lib/libstemmer.so.0
|
|
|
|
ln -s libstemmer.so.0 $PKG/usr/lib/libstemmer.so
|
|
|
|
}
|