blob: 0546cf9c0f01b761412a1c11451a1dacb964b9fa (
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
|
# 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"
|