summaryrefslogtreecommitdiff
path: root/repo/nuspell
diff options
context:
space:
mode:
Diffstat (limited to 'repo/nuspell')
-rw-r--r--repo/nuspell/nuspell.xibuild30
1 files changed, 30 insertions, 0 deletions
diff --git a/repo/nuspell/nuspell.xibuild b/repo/nuspell/nuspell.xibuild
new file mode 100644
index 0000000..a404428
--- /dev/null
+++ b/repo/nuspell/nuspell.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="nuspell"
+DESC="Free and open source C++ spell checking library"
+
+MAKEDEPS="cmake icu ronn catch2"
+
+PKG_VER=5.1.0
+SOURCE="https://github.com/nuspell/nuspell/archive/v$PKG_VER/nuspell-$PKG_VER.tar.gz"
+
+build() {
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ $CMAKE_CROSSOPTS .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+