summaryrefslogtreecommitdiffstats
path: root/testing/snowball/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-24 08:09:57 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-24 08:09:57 +0000
commit6d78fec75b55d5d04a9527e00add6dd205fbd5b0 (patch)
tree55264d22a329fb4c874b7e526f31c4d89d866087 /testing/snowball/APKBUILD
parent188a3a44b3edaf42f912f5a59a1294c223f08abb (diff)
downloadaports-6d78fec75b55d5d04a9527e00add6dd205fbd5b0.tar.bz2
aports-6d78fec75b55d5d04a9527e00add6dd205fbd5b0.tar.xz
testing/snowball: new aport
Diffstat (limited to 'testing/snowball/APKBUILD')
-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 000000000..0546cf9c0
--- /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"