aboutsummaryrefslogtreecommitdiffstats
path: root/community/libexttextcat/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-05-18 08:09:50 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-05-18 12:52:04 +0000
commit7f31fea2f9a43b6a22e377fc8a662471e245fc36 (patch)
treea5aa184ce0f04fd6e926add184512c5645d3bd57 /community/libexttextcat/APKBUILD
parent632ea158157084ba82e87683c87937437c237496 (diff)
downloadaports-7f31fea2f9a43b6a22e377fc8a662471e245fc36.tar.bz2
aports-7f31fea2f9a43b6a22e377fc8a662471e245fc36.tar.xz
community/libexttextcat: moved from main
Diffstat (limited to 'community/libexttextcat/APKBUILD')
-rw-r--r--community/libexttextcat/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/libexttextcat/APKBUILD b/community/libexttextcat/APKBUILD
new file mode 100644
index 0000000000..0c3dd11abf
--- /dev/null
+++ b/community/libexttextcat/APKBUILD
@@ -0,0 +1,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"