# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=nuspell pkgver=3.1.0 pkgrel=0 pkgdesc="Free and open source C++ spell checking library" url="https://nuspell.github.io/" arch="all" license="LGPL-3.0-or-later" depends_dev="boost-dev" makedepends="$depends_dev cmake icu-dev ronn catch2" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/nuspell/nuspell/archive/v$pkgver/nuspell-$pkgver.tar.gz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ $CMAKE_CROSSOPTS . make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { make DESTDIR="$pkgdir" install } sha512sums="a9bedfd6e2d77fd34d249cf7aa1fcb6bde5bced26f02f8a2dd860416a61488c9b7016a0df6015052fcccb272b342e6205db601107f46efa44c9d78ce261a826c nuspell-3.1.0.tar.gz"