# Maintainer: AndyRTR # Conributor: Mélanie Chauvel (ariasuni) # ALARM: Kevin Mihelich # - remove makedepend on pandoc # - move catch2 to makedepends pkgname=nuspell pkgver=5.1.4 pkgrel=3 pkgdesc='Fast and safe spellchecking C++ library' arch=('x86_64') url='https://nuspell.github.io/' license=('LGPL3') depends=('icu' 'glibc' 'gcc-libs') makedepends=('cmake' 'catch2') checkdepends=('catch2' 'expat') source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/nuspell/nuspell/archive/v${pkgver}.tar.gz") sha512sums=('f4119b3fe5944be8f5bc35ccff8d7a93b0f4fa9f129bc97a7b96879a11b5b35bd714b41dd209267417e94c5fed45fd3a74b349f94424f4b90bde07d9694d1d7d') # 1st rebuild enchant # 2nd rebuild epiphany against nuspell/enchant that checkdepens on both build() { cmake -B "${pkgname}-${pkgver}"/build \ -S ${pkgbase}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DBUILD_SHARED_LIBS=ON cmake --build "${pkgname}-${pkgver}"/build } check() { ctest --test-dir "${pkgname}-${pkgver}"/build } package() { DESTDIR="${pkgdir}" cmake --install "${pkgname}-${pkgver}"/build }