aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/snowball/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/snowball/APKBUILD b/testing/snowball/APKBUILD
new file mode 100644
index 0000000000..0546cf9c0f
--- /dev/null
+++ b/testing/snowball/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=snowball
+_pkgname=libstemmer
+pkgver=20111029
+pkgrel=0
+pkgdesc="Snowball rule-based stemming algorithms"
+url="http://snowball.tartarus.org"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://snowball.tartarus.org/dist/${_pkgname}_c.tgz"
+
+_builddir="$srcdir"/${_pkgname}_c
+
+build() {
+ cd "$_builddir"
+ make CC='gcc -fPIC' || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -d ${pkgdir}/usr/bin || return 1
+ install ${srcdir}/libstemmer_c/stemwords ${pkgdir}/usr/bin || return 1
+ install -d ${pkgdir}/usr/include || return 1
+ install ${srcdir}/libstemmer_c/include/libstemmer.h ${pkgdir}/usr/include || return 1
+ install -d ${pkgdir}/usr/lib || return 1
+ install ${srcdir}/libstemmer_c/libstemmer.o ${pkgdir}/usr/lib/libstemmer.a || return 1
+}
+
+md5sums="83e8e8393be723fad32d06fe0fe4bcc2 libstemmer_c.tgz"