PKGBUILDs/extra/nuspell/PKGBUILD

52 lines
1.4 KiB
Bash
Raw Normal View History

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
2021-11-13 16:51:43 +00:00
pkgver=5.0.1
2021-06-14 17:49:44 +00:00
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')
#makedepends=('cmake' 'ruby-ronn')
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")
# ${pkgname}-pandoc.patch::https://github.com/nuspell/nuspell/commit/5d4f685011b2.patch)
2021-11-13 16:51:43 +00:00
sha512sums=('f883d8c8a3a722a62d411d7b0973dd409c6d09d08ea678c577cef68ec8b5c7e4a4e4cb8a1323e632114414fc17137d1add996a72fbd522ab4de8c6f70fc77073')
2021-06-14 17:49:44 +00:00
# 'SKIP')
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
2020-12-13 18:52:19 +00:00
# temporarily use ronn - pandoc is unusable due to a separate haskell rebuild
2021-06-14 17:49:44 +00:00
# patch -Rp1 -f -d ${pkgname}-${pkgver} <${pkgname}-pandoc.patch || /bin/true
2020-11-04 17:27:07 +00:00
}
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
}