2020-11-04 17:27:07 +00:00
|
|
|
# Maintainer: AndyRTR <andyrtr@archlinux.org>
|
|
|
|
# Conributor: Mélanie Chauvel (ariasuni) <perso at hack-libre dot org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove makedepend on pandoc
|
|
|
|
|
|
|
|
pkgname=nuspell
|
2022-09-10 06:47:53 +00:00
|
|
|
pkgver=5.1.1
|
|
|
|
pkgrel=1
|
2020-11-04 17:27:07 +00:00
|
|
|
pkgdesc='Fast and safe spellchecking C++ library'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://nuspell.github.io/'
|
|
|
|
license=('LGPL3')
|
2020-12-13 18:52:19 +00:00
|
|
|
depends=('icu')
|
2021-06-14 17:49:44 +00:00
|
|
|
makedepends=('cmake')
|
2020-12-13 18:52:19 +00:00
|
|
|
checkdepends=('catch2')
|
2021-06-14 17:49:44 +00:00
|
|
|
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/nuspell/nuspell/archive/v${pkgver}.tar.gz")
|
2022-09-10 06:47:53 +00:00
|
|
|
sha512sums=('c33a52e3603071d3281b7cdcfa42776cd7ecb998292939538e53e364cfff63227cf094cd88ee6072b8a857f5d85c984c359a16b480dd462dac9cfd602cfd6c2c')
|
2020-12-13 18:52:19 +00:00
|
|
|
|
2021-06-14 17:49:44 +00:00
|
|
|
# 1st rebuild enchant
|
|
|
|
# 2nd rebuild epiphany against nuspell/enchant that checkdepens on both
|
2020-11-04 17:27:07 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|