aboutsummaryrefslogtreecommitdiffstats
path: root/community/snowball/APKBUILD
blob: 1bb05ce770e9d6634fefe99b195ac070cd933242 (plain) (blame)
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 <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
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"