# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=enchant2 pkgver=2.5.0 pkgrel=0 pkgdesc="wrapper library for generic spell checking (v2)" url="https://abiword.github.io/enchant/" arch="all" license="LGPL-2.1-or-later" makedepends=" aspell-dev dbus-glib-dev file gettext-dev glib-dev groff hunspell-dev nuspell-dev " subpackages=" $pkgname-libs $pkgname-dev $pkgname-doc $pkgname-data $pkgname-aspell $pkgname-hunspell $pkgname-nuspell " options="!check" # needs unpackaged unittest-cpp source="https://github.com/AbiWord/enchant/releases/download/v$pkgver/enchant-$pkgver.tar.gz" builddir="$srcdir/enchant-$pkgver" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ --with-aspell \ --with-hunspell \ --with-nuspell make } check() { make check } package() { depends=" $pkgname-aspell=$pkgver-r$pkgrel $pkgname-hunspell=$pkgver-r$pkgrel $pkgname-nuspell=$pkgver-r$pkgrel " make DESTDIR="$pkgdir" pkgdatadir=/usr/share/enchant-2 install } data() { amove usr/share/enchant-2 } aspell() { depends="$pkgname-data=$pkgver-r$pkgrel" install_if="$pkgname-libs=$pkgver-r$pkgrel aspell" amove usr/lib/enchant-2/enchant_aspell.so } hunspell() { depends="$pkgname-data=$pkgver-r$pkgrel" install_if="$pkgname-libs=$pkgver-r$pkgrel hunspell" amove usr/lib/enchant-2/enchant_hunspell.so } nuspell() { depends="$pkgname-data=$pkgver-r$pkgrel" install_if="$pkgname-libs=$pkgver-r$pkgrel nuspell" amove usr/lib/enchant-2/enchant_nuspell.so } sha512sums=" 3ab209b0b87b7cd8f94dd2bceed126d0e36252a1ede7a30b1550169555242784a631c0f259b0fe6591771da491ab934cac48f833029ba78dd779fc1ed91341fe enchant-2.5.0.tar.gz "