extra/nuspell to 5.1.4-1

This commit is contained in:
Kevin Mihelich 2023-12-08 14:59:36 +00:00
parent cabe14a565
commit 23d88345d7
2 changed files with 24 additions and 14 deletions

17
extra/nuspell/.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = nuspell
pkgdesc = Fast and safe spellchecking C++ library
pkgver = 5.1.4
pkgrel = 1
url = https://nuspell.github.io/
arch = x86_64
license = LGPL3
checkdepends = catch2
makedepends = cmake
makedepends = pandoc
depends = icu
depends = glibc
depends = gcc-libs
source = nuspell-5.1.4.tar.gz::https://github.com/nuspell/nuspell/archive/v5.1.4.tar.gz
sha512sums = f4119b3fe5944be8f5bc35ccff8d7a93b0f4fa9f129bc97a7b96879a11b5b35bd714b41dd209267417e94c5fed45fd3a74b349f94424f4b90bde07d9694d1d7d
pkgname = nuspell

View file

@ -6,7 +6,7 @@
# - move catch2 to makedepends
pkgname=nuspell
pkgver=5.1.3
pkgver=5.1.4
pkgrel=1
pkgdesc='Fast and safe spellchecking C++ library'
arch=('x86_64')
@ -15,31 +15,24 @@ license=('LGPL3')
depends=('icu' 'glibc' 'gcc-libs')
makedepends=('cmake' 'catch2')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/nuspell/nuspell/archive/v${pkgver}.tar.gz")
sha512sums=('72c868f734848be79c7cfb0502298626307213e4f3f422f8e9ee7dac24cb3d79ea55d04ef0443e7107bb11eb545c79a15a8aea8cb056dc2805c23bd5e3292562')
sha512sums=('f4119b3fe5944be8f5bc35ccff8d7a93b0f4fa9f129bc97a7b96879a11b5b35bd714b41dd209267417e94c5fed45fd3a74b349f94424f4b90bde07d9694d1d7d')
# 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 \
cmake -B "${pkgname}-${pkgver}"/build \
-S ${pkgbase}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_SHARED_LIBS=ON
make
cmake --build "${pkgname}-${pkgver}"/build
}
check() {
cd build
make test
ctest --test-dir "${pkgname}-${pkgver}"/build
}
package() {
cd build
make DESTDIR="$pkgdir" install
DESTDIR="${pkgdir}" cmake --install "${pkgname}-${pkgver}"/build
}