# Maintainer: Storm Dragon <storm_dragon@stormux.org>

pkgname=python3-gtkspellcheck
_srcname=pygtkspellcheck
pkgver=5.0.3
pkgrel=1slint
slackdesc="$pkgname (Spell-check library for GTK)"
url='https://github.com/koehlma/pygtkspellcheck'
license=('GPL-3.0-or-later')
depends=('glib2' 'python' 'python-gobject' 'python-pyenchant')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-myst-parser'
             'python-poetry-core' 'python-sphinx_rtd_theme')
optdepends=('gtk3: GTK 3 support'
            'gtk4: GTK 4 support')
options=('nosrcpack')
source=("https://github.com/koehlma/pygtkspellcheck/archive/refs/tags/v$pkgver.tar.gz")
docs=(README.rst)

build() {
  cd "$SRC/$_srcname-$pkgver" || exit 1
  python3 -m build --wheel --no-isolation || exit 1
  python3 -m installer --destdir="$PKG" dist/*.whl || exit 1
}
