aboutsummaryrefslogtreecommitdiffstats
path: root/community/libstemmer/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libstemmer/APKBUILD')
-rw-r--r--community/libstemmer/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/libstemmer/APKBUILD b/community/libstemmer/APKBUILD
new file mode 100644
index 0000000000..a2e9e2e46b
--- /dev/null
+++ b/community/libstemmer/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Clayton Craft <clayton@craftyguy.net>
+# Maintainer: Clayton Craft <clayton@craftyguy.net>
+pkgname=libstemmer
+pkgver=0_git20201025
+pkgrel=0
+_commit="04913def2b38a6f33c58b2d6704bcbd93b88220f"
+pkgdesc="A small string processing language for creating stemming algorithms for use in Information Retrieval"
+url="https://github.com/snowballstem/snowball"
+arch="all"
+license="BSD-3-Clause"
+makedepends="perl"
+options="!check" # no tests
+subpackages="$pkgname-dev"
+source="
+ https://github.com/snowballstem/snowball/archive/$_commit.tar.gz
+ 0001-Compile-dynamic-lib.patch
+ "
+builddir=$srcdir/snowball-$_commit
+
+build() {
+ make
+}
+
+package() {
+ install -Dm644 include/libstemmer.h "$pkgdir"/usr/include/libstemmer.h
+ install -Dm644 libstemmer.so.0.0.0 "$pkgdir"/usr/lib/libstemmer.so.0.0.0
+ ln -s libstemmer.so.0.0.0 "$pkgdir"/usr/lib/libstemmer.so
+ ln -s libstemmer.so "$pkgdir"/usr/lib/libstemmer.so.0
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/libstemmer/LICENSE"
+}
+
+
+sha512sums="184c381bc8592ecc4df7935b65c767c5271942d0ebbf48c6cae4cd35327a20bcf965003a31800942e4bc6abc539a2d319bce0708610af610a804e57b43125b56 04913def2b38a6f33c58b2d6704bcbd93b88220f.tar.gz
+e0c72a31526678199e4b1cdd8686a9bd87352848ae61406af319bb7d5c4d96115882ef1d524359a762b889e0dbff6210874389a3c45b2a4bf3fd41d8d143c4e3 0001-Compile-dynamic-lib.patch"