aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snowball/APKBUILD
blob: a5304613628d47bf4b3b584e9fbb4f5a21bb7a5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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="fc7f6930d843bc65e69f9151262f4153  libstemmer_c.tgz"
sha256sums="7694b0ec0a380670470587a559abb219c224b8047ed9e3078dccb8898a4a4afb  libstemmer_c.tgz"
sha512sums="938eb12d4fe9e229f21536a6cb8a4322e0b664a7fbc15685e7ad46b4a6ccdfbefc55cc484f86bc738791d6f3e6d1b61ba777a4332a62cf76a8b0a5efd2c2762b  libstemmer_c.tgz"