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

pkgname=apertium-lex-tools
pkgver=0.2.1
pkgrel=1
arch=('i686' 'x86_64' 'armv7h')
pkgdesc="Apertium lex tools for compiling translation pairs"
url="https://github.com/apertium/apertium-lex-tools"
license=('GPL3')
makedepends=()
depends=('apertium>=3.5.2' 'lttoolbox>=3.5')
source=(https://github.com/apertium/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('f00ca5629e7c0c3162a5e2ba5f570e47d80873cd4763403a1dd88b87af3c6e96')

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

  ./configure --prefix=/usr
  make
}

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

  make DESTDIR="$pkgdir/" install
}
