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
|
2023-10-01 23:55:59 +00:00
|
|
|
# - move catch2 to makedepends
|
2020-11-04 17:27:07 +00:00
|
|
|
|
|
|
|
pkgname=nuspell
|
2023-12-08 14:59:36 +00:00
|
|
|
pkgver=5.1.4
|
2023-12-18 16:50:51 +00:00
|
|
|
pkgrel=2
|
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')
|
2023-08-28 12:39:56 +00:00
|
|
|
depends=('icu' 'glibc' 'gcc-libs')
|
2023-10-01 23:55:59 +00:00
|
|
|
makedepends=('cmake' 'catch2')
|
2021-06-14 17:49:44 +00:00
|
|
|
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/nuspell/nuspell/archive/v${pkgver}.tar.gz")
|
2023-12-08 14:59:36 +00:00
|
|
|
sha512sums=('f4119b3fe5944be8f5bc35ccff8d7a93b0f4fa9f129bc97a7b96879a11b5b35bd714b41dd209267417e94c5fed45fd3a74b349f94424f4b90bde07d9694d1d7d')
|
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
|
|
|
|
|
|
|
build() {
|
2023-12-08 14:59:36 +00:00
|
|
|
cmake -B "${pkgname}-${pkgver}"/build \
|
|
|
|
-S ${pkgbase}-${pkgver} \
|
2020-11-04 17:27:07 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DBUILD_SHARED_LIBS=ON
|
2023-12-08 14:59:36 +00:00
|
|
|
cmake --build "${pkgname}-${pkgver}"/build
|
2020-11-04 17:27:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2023-12-08 14:59:36 +00:00
|
|
|
ctest --test-dir "${pkgname}-${pkgver}"/build
|
2020-11-04 17:27:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-12-08 14:59:36 +00:00
|
|
|
DESTDIR="${pkgdir}" cmake --install "${pkgname}-${pkgver}"/build
|
2020-11-04 17:27:07 +00:00
|
|
|
}
|