# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=libexttextcat
pkgver=3.4.7
pkgrel=1
pkgdesc="N-Gram-Based Text Categorization library primarily intended for language guessing"
arch=('x86_64' 'armv7h')
url="https://wiki.documentfoundation.org/Libexttextcat"
license=('custom')
depends=('glibc')
provides=('libtextcat')
source=(#https://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz
https://dev-www.libreoffice.org/src/$pkgname-$pkgver.tar.xz)
sha256sums=('df0a59d413a5b202573d8d4f5159e33a8538da4f8e8e60979facc64d6290cebd')
build() {
cd "${srcdir}"/$pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" install
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
}