diff options
Diffstat (limited to 'main/libexttextcat')
-rw-r--r-- | main/libexttextcat/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/libexttextcat/APKBUILD b/main/libexttextcat/APKBUILD new file mode 100644 index 0000000000..626dbe92c2 --- /dev/null +++ b/main/libexttextcat/APKBUILD @@ -0,0 +1,50 @@ +# 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 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="bfa7107c27afda3a3afa4b7ab5a3fe17 libexttextcat-3.4.4.tar.xz" +sha256sums="f24c086cf3523424228ed58b9f678cc7647688822e5407d5fbc155fbfc846293 libexttextcat-3.4.4.tar.xz" +sha512sums="f1f7a4292199cb6102cc56a5338b19049664ea664adc96a67a71205fe33d6a40f68b8695825fe253427575347ab6230dce5e0b703635534f32a0f70ff001eeed libexttextcat-3.4.4.tar.xz" |