# Contributor (AUR): Kevin Brubeck Unhammer <unhammer@fsfe.org>
# Maintainer (AUR): Kevin Brubeck Unhammer <unhammer@fsfe.org>

pkgname=lttoolbox
pkgver=3.5.0
pkgrel=1
arch=('i686' 'x86_64' 'armv7h')
pkgdesc="Handles lexical processing, morphological analysis and generation of words in natural languages using fast finite state transducers."
url="https://github.com/apertium/lttoolbox"
license=('GPL')
makedepends=('pkgconf')
depends=('libxml2' 'gcc-libs')
options=('!libtool')
source=(https://github.com/apertium/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('cbfc6e38ba995d80114a250f9756bd28708e9b3510bde09fe7f91e0a83bbc623')


build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}
