aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snowball/APKBUILD
blob: e79c34593b9f396f403558eeb4a07ae33aa39a2f (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
38
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=snowball
_pkgname=libstemmer
pkgver=0_git20140929
pkgrel=0
pkgdesc="Snowball rule-based stemming algorithms"
url="http://snowball.tartarus.org"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev perl"
install=""
subpackages="$pkgname-dev"
disturl="dev.alpinelinux.org:/archive/$pkgname/"
snapshot="full"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	make CC='gcc -fPIC' || return 1
}

package() {
	cd "$_builddir"
	install -d ${pkgdir}/usr/bin || return 1 
	install stemwords ${pkgdir}/usr/bin || return 1
	install -d ${pkgdir}/usr/include || return 1
	install include/libstemmer.h ${pkgdir}/usr/include || return 1
	install -d ${pkgdir}/usr/lib || return 1
	install libstemmer.o ${pkgdir}/usr/lib/libstemmer.a || return 1
}

md5sums="722407e81deb75ad18eb4f56815531c3  snowball-0_git20140929.tar.gz"
sha256sums="7f54c97dabf1acde637695dcb47331884fcd6fe63f3ad6c9e7cccb786accecda  snowball-0_git20140929.tar.gz"
sha512sums="a8c7426ae9e1fc4397845ace6a8d24b1ff555150f210ece76add92bb6a3092c47305577a265f6aba6fc49d6dd6bc6cb8bb4ce523979f479b176f2ffad0477ac3  snowball-0_git20140929.tar.gz"