aboutsummaryrefslogtreecommitdiffstats
path: root/community/libexttextcat/APKBUILD
blob: 0c3dd11abf94cf838a8084ac22abeab8ce9bd9ce (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
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libexttextcat
pkgver=3.4.4
pkgrel=0
pkgdesc="An N-Gram-Based Text Categorization library"
url="http://www.freedesktop.org/wiki/Software/libexttextcat/"
arch="all"
license="MPL2"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="bfa7107c27afda3a3afa4b7ab5a3fe17  libexttextcat-3.4.4.tar.xz"
sha256sums="f24c086cf3523424228ed58b9f678cc7647688822e5407d5fbc155fbfc846293  libexttextcat-3.4.4.tar.xz"
sha512sums="f1f7a4292199cb6102cc56a5338b19049664ea664adc96a67a71205fe33d6a40f68b8695825fe253427575347ab6230dce5e0b703635534f32a0f70ff001eeed  libexttextcat-3.4.4.tar.xz"