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>
|
2024-07-06 20:22:40 +00:00
|
|
|
# - remove makedepend on pandoc, set -DBUILD_DOCS=OFF
|
2023-10-01 23:55:59 +00:00
|
|
|
# - move catch2 to makedepends
|
2020-11-04 17:27:07 +00:00
|
|
|
|
|
|
|
pkgname=nuspell
|
2024-07-04 15:40:45 +00:00
|
|
|
pkgver=5.1.6
|
|
|
|
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/'
|
2024-07-04 15:40:45 +00:00
|
|
|
license=('LGPL-3.0-or-later')
|
2023-08-28 12:39:56 +00:00
|
|
|
depends=('icu' 'glibc' 'gcc-libs')
|
2023-10-01 23:55:59 +00:00
|
|
|
makedepends=('cmake' 'catch2')
|
2024-05-19 19:19:42 +00:00
|
|
|
checkdepends=('catch2' 'expat')
|
2021-06-14 17:49:44 +00:00
|
|
|
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/nuspell/nuspell/archive/v${pkgver}.tar.gz")
|
2024-07-04 15:40:45 +00:00
|
|
|
sha512sums=('ab6d9394a55d9a2a347ccae47aeef6a96af70f421ad6ea8f7ac7fde2052790f37fb1c7ec3112daac7600d193430a560cb1915ab6557c9353717f65cb32f13ab8')
|
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 \
|
2024-07-06 20:22:40 +00:00
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DBUILD_DOCS=OFF
|
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
|
|
|
}
|