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