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
pkgname=nuspell
2022-09-30 21:47:55 +00:00
pkgver=5.1.2
2022-10-22 14:33:22 +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')
2020-12-13 18:52:19 +00:00
depends=('icu')
2021-06-14 17:49:44 +00:00
makedepends=('cmake')
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")
2022-09-30 21:47:55 +00:00
sha512sums=('138212ae5340836f0bc85d9d5327dc43ffdb1481ca72678b4619938b86c4c8e7c156eec1446f459636460a9015cd476031ad53d0979325e637ed97c19e2f87c8')
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
}