mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# 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
|
|
# - move catch2 to makedepends
|
|
|
|
pkgname=nuspell
|
|
pkgver=5.1.4
|
|
pkgrel=2
|
|
pkgdesc='Fast and safe spellchecking C++ library'
|
|
arch=('x86_64')
|
|
url='https://nuspell.github.io/'
|
|
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=('f4119b3fe5944be8f5bc35ccff8d7a93b0f4fa9f129bc97a7b96879a11b5b35bd714b41dd209267417e94c5fed45fd3a74b349f94424f4b90bde07d9694d1d7d')
|
|
|
|
# 1st rebuild enchant
|
|
# 2nd rebuild epiphany against nuspell/enchant that checkdepens on both
|
|
|
|
build() {
|
|
cmake -B "${pkgname}-${pkgver}"/build \
|
|
-S ${pkgbase}-${pkgver} \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
-DBUILD_SHARED_LIBS=ON
|
|
cmake --build "${pkgname}-${pkgver}"/build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir "${pkgname}-${pkgver}"/build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="${pkgdir}" cmake --install "${pkgname}-${pkgver}"/build
|
|
}
|