PKGBUILDs/extra/nuspell/PKGBUILD

46 lines
1.1 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
2023-10-01 23:55:59 +00:00
# - move catch2 to makedepends
2020-11-04 17:27:07 +00:00
pkgname=nuspell
2023-08-28 12:39:56 +00:00
pkgver=5.1.3
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')
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-08-28 12:39:56 +00:00
sha512sums=('72c868f734848be79c7cfb0502298626307213e4f3f422f8e9ee7dac24cb3d79ea55d04ef0443e7107bb11eb545c79a15a8aea8cb056dc2805c23bd5e3292562')
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
}