summaryrefslogtreecommitdiff
path: root/repo/libstaroffice
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/libstaroffice
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/libstaroffice')
-rw-r--r--repo/libstaroffice/fix-maybe-uninitialized.patch11
-rw-r--r--repo/libstaroffice/libstaroffice.xibuild30
2 files changed, 41 insertions, 0 deletions
diff --git a/repo/libstaroffice/fix-maybe-uninitialized.patch b/repo/libstaroffice/fix-maybe-uninitialized.patch
new file mode 100644
index 0000000..b4f1ec9
--- /dev/null
+++ b/repo/libstaroffice/fix-maybe-uninitialized.patch
@@ -0,0 +1,11 @@
+--- a/src/lib/StarGraphicStruct.cxx
++++ b/src/lib/StarGraphicStruct.cxx
+@@ -152,7 +152,7 @@
+ {
+ if (!pattern) return false;
+ STOFFVec2i sz(8,8);
+- unsigned tmpBufferPosition, tmpDIBFileSize;
++ unsigned tmpBufferPosition, tmpDIBFileSize = 0;
+ auto tmpDIBBuffer=createAndInitBMPData(sz, tmpDIBFileSize, tmpBufferPosition);
+ if (!tmpDIBBuffer) return false;
+
diff --git a/repo/libstaroffice/libstaroffice.xibuild b/repo/libstaroffice/libstaroffice.xibuild
new file mode 100644
index 0000000..47c0985
--- /dev/null
+++ b/repo/libstaroffice/libstaroffice.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="libstaroffice"
+DESC="Import filter for StarOffice documents"
+
+MAKEDEPS="zlib boost librevenge doxygen"
+
+PKG_VER=0.0.7
+SOURCE="https://github.com/fosnola/libstaroffice/releases/download/$PKG_VER/libstaroffice-$PKG_VER.tar.xz"
+
+ADDITIONAL="
+fix-maybe-uninitialized.patch
+"
+
+prepare() {
+ apply_patches
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}