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/"
13 _commit=48a67a2831005f49c48ec29a5837640e23e54e6b # tags/v2.2.0^0
14 source=("git+https://github.com/snowballstem/snowball#commit=$_commit"
17 'c031da5a11bafa079df6c33b38b8795b65cf2c91cc6b452dcf2b10612288a3e6')
21 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
26 git apply -3 ../dynamiclib.diff
34 # No check - needs external test data
41 install -Dt "$pkgdir/usr/bin" snowball stemwords
43 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
46 package_libstemmer() {
47 pkgdesc="Stemming library supporting several languages"
49 provides=(libstemmer.so)
53 install -Dt "$pkgdir/usr/include" -m644 include/libstemmer.h
54 install -Dm644 libstemmer.so.0 "$pkgdir/usr/lib/libstemmer.so.0.0.0"
55 ln -s libstemmer.so.0.0.0 "$pkgdir/usr/lib/libstemmer.so.0"
56 ln -s libstemmer.so.0 "$pkgdir/usr/lib/libstemmer.so"
58 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING