aboutsummaryrefslogtreecommitdiffstats
path: root/community/libexttextcat/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-09-20 13:58:45 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-09-20 14:00:46 +0000
commitbf62f6a593f2fad4f7ec8c0e9b9a8983407d96a5 (patch)
treeaeb1e509fe962c3d9fc37894d4932eee0343f4ec /community/libexttextcat/APKBUILD
parentefc8e9908c6de0b43f97afc6dfaee6071cef3d58 (diff)
downloadaports-bf62f6a593f2fad4f7ec8c0e9b9a8983407d96a5.tar.bz2
aports-bf62f6a593f2fad4f7ec8c0e9b9a8983407d96a5.tar.xz
community/libexttextcat: upgrade to 3.4.5, modernize
Diffstat (limited to 'community/libexttextcat/APKBUILD')
-rw-r--r--community/libexttextcat/APKBUILD34
1 files changed, 13 insertions, 21 deletions
diff --git a/community/libexttextcat/APKBUILD b/community/libexttextcat/APKBUILD
index 0c3dd11abf..618db67932 100644
--- a/community/libexttextcat/APKBUILD
+++ b/community/libexttextcat/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libexttextcat
-pkgver=3.4.4
+pkgver=3.4.5
pkgrel=0
pkgdesc="An N-Gram-Based Text Categorization library"
url="http://www.freedesktop.org/wiki/Software/libexttextcat/"
@@ -13,20 +13,10 @@ 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
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -34,16 +24,18 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="bfa7107c27afda3a3afa4b7ab5a3fe17 libexttextcat-3.4.4.tar.xz"
-sha256sums="f24c086cf3523424228ed58b9f678cc7647688822e5407d5fbc155fbfc846293 libexttextcat-3.4.4.tar.xz"
-sha512sums="f1f7a4292199cb6102cc56a5338b19049664ea664adc96a67a71205fe33d6a40f68b8695825fe253427575347ab6230dce5e0b703635534f32a0f70ff001eeed libexttextcat-3.4.4.tar.xz"
+sha512sums="f05a9f08c2f2f335d0e483c024321b96fee7424bc1398d4c6acbd9c501f92e22f881bc3d6ec2c0434f9bf4604f3c4b0e880e37d3d0de410eac1a20ea6669baa6 libexttextcat-3.4.5.tar.xz"