pkgname = "nuspell"
pkgver = "5.1.2"
pkgrel = 0
build_style = "cmake"
configure_args = ["-DBUILD_SHARED_LIBS=ON"]
hostmakedepends = ["cmake", "ninja", "pkgconf"]
makedepends = ["icu-devel"]
checkdepends = ["catch2"]
pkgdesc = "Fast and safe spell checking software"
maintainer = "q66 <q66@chimera-linux.org>"
license = "LGPL-3.0-or-later"
url = "https://nuspell.github.io"
source = f"https://github.com/{pkgname}/{pkgname}/archive/v{pkgver}.tar.gz"
sha256 = "82f5f2faa82df30099555dca94b3a908d38fdba408e31e74535c523f7e6ea18d"
hardening = ["!cfi"] # TODO
# missing checkdepends
options = ["!check"]

@subpackage("nuspell-devel")
def _devel(self):
    return self.default_devel()

@subpackage("nuspell-progs")
def _progs(self):
    return self.default_progs()
