summaryrefslogtreecommitdiff
path: root/repo/liborcus
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/liborcus
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/liborcus')
-rw-r--r--repo/liborcus/fix-include.patch10
-rw-r--r--repo/liborcus/liborcus.xibuild36
2 files changed, 46 insertions, 0 deletions
diff --git a/repo/liborcus/fix-include.patch b/repo/liborcus/fix-include.patch
new file mode 100644
index 0000000..407ef03
--- /dev/null
+++ b/repo/liborcus/fix-include.patch
@@ -0,0 +1,10 @@
+--- a/include/orcus/global.hpp
++++ b/include/orcus/global.hpp
+@@ -11,6 +11,7 @@
+ #include "types.hpp"
+ #include "env.hpp"
+
++#include <limits>
+ #include <memory>
+ #include <functional>
+
diff --git a/repo/liborcus/liborcus.xibuild b/repo/liborcus/liborcus.xibuild
new file mode 100644
index 0000000..7c43ca0
--- /dev/null
+++ b/repo/liborcus/liborcus.xibuild
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+NAME="liborcus"
+DESC="Library for processing spreadsheet documents"
+
+MAKEDEPS="boost mdds libixion zlib"
+
+PKG_VER=0.16.1
+SOURCE="https://kohei.us/files/orcus/src/liborcus-$PKG_VER.tar.xz"
+
+ADDITIONAL="
+fix-include.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-python
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+