1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(snowball libstemmer)
7 pkgdesc="String processing language for creating stemming algorithms"
8 url="https://snowballstem.org/"
12 _commit=48a67a2831005f49c48ec29a5837640e23e54e6b # tags/v2.2.0^0
13 source=("git+https://github.com/snowballstem/snowball#commit=$_commit"
16 'c031da5a11bafa079df6c33b38b8795b65cf2c91cc6b452dcf2b10612288a3e6')
20 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
25 git apply -3 ../dynamiclib.diff
33 # No check - needs external test data
40 install -Dt "$pkgdir/usr/bin" snowball stemwords
42 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
45 package_libstemmer() {
46 pkgdesc="Stemming library supporting several languages"
48 provides=(libstemmer.so)
52 install -Dt "$pkgdir/usr/include" -m644 include/libstemmer.h
53 install -Dm644 libstemmer.so.0 "$pkgdir/usr/lib/libstemmer.so.0.0.0"
54 ln -s libstemmer.so.0.0.0 "$pkgdir/usr/lib/libstemmer.so.0"
55 ln -s libstemmer.so.0 "$pkgdir/usr/lib/libstemmer.so"
57 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING