# Maintainer: Bruno Pagani <archange@archlinux.org>

pkgname=grammalecte
pkgver=1.4.0
pkgrel=1
pkgdesc="Grammar and typographic checker dedicated to the French language – standalone version"
arch=(any)
url="https://grammalecte.net/"
license=(GPL3)
depends=(python)
makedepends=(unzip python-setuptools)
options=(!emptydirs)
source=("https://grammalecte.net/grammalecte/zip/Grammalecte-fr-v${pkgver}.zip")
sha256sums=('c6400de77572390ca6a1889bd80363978550671e4049fea46c4a7fc6665a604c')

build() {
  python setup.py build
}

package() {
  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
  mv "${pkgdir}"/usr/bin/grammalecte-cli{.py,}
  mv "${pkgdir}"/usr/bin/grammalecte-server{.py,}
}
