Skip to content

Commit

Permalink
libreoffice-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
knyipab committed Sep 3, 2024
1 parent f0fc35c commit c68491b
Show file tree
Hide file tree
Showing 31 changed files with 487 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tur/box2d/0001-aligned_alloc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
diff --git a/samples/main.cpp b/samples/main.cpp
index 576b4d1..d28fbbb 100644
--- a/samples/main.cpp
+++ b/samples/main.cpp
@@ -22,6 +22,15 @@
#include <stdio.h>
#include <stdlib.h>

+#if defined(__ANDROID__) && __ANDROID_API__ < 26
+void *aligned_alloc(size_t align, size_t size)
+{
+ void *result = NULL;
+ posix_memalign(&result, align, size);
+ return result;
+}
+#endif
+
#ifdef BOX2D_PROFILE
#include <tracy/Tracy.hpp>
#else
diff --git a/src/allocate.c b/src/allocate.c
index 5e832ef..fe8320d 100644
--- a/src/allocate.c
+++ b/src/allocate.c
@@ -15,6 +15,15 @@
#include <stdlib.h>
#endif

+#if defined(__ANDROID__) && __ANDROID_API__ < 26
+void *aligned_alloc(size_t align, size_t size)
+{
+ void *result = NULL;
+ posix_memalign(&result, align, size);
+ return result;
+}
+#endif
+
#include <stdatomic.h>
#include <stdint.h>

13 changes: 13 additions & 0 deletions tur/box2d/0002-unsupported-cpu.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/core.h b/src/core.h
index fe495c6..baaa5b3 100644
--- a/src/core.h
+++ b/src/core.h
@@ -47,7 +47,7 @@
#elif defined( __EMSCRIPTEN__ )
#define B2_CPU_WASM
#else
- #error Unsupported CPU
+ // #error Unsupported CPU
#endif

// Define compiler
13 changes: 13 additions & 0 deletions tur/box2d/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE="http://www.box2d.org/"
TERMUX_PKG_DESCRIPTION="2D rigid body simulation library for games"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=3.0.0
TERMUX_PKG_SRCURL="https://github.com/erincatto/Box2D/archive/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=64ad759006cd2377c99367f51fb36942b57f0e9ad690ed41548dd620e6f6c8b1
TERMUX_PKG_BUILD_DEPENDS="git, glfw, libxcursor, libxinerama, libxkbcommon, libxt, xorg-xrandr"
TERMUX_PKG_AUTO_UPDATE=true

termux_step_pre_configure() {
LDFLAGS+=" -lglfw -lGL"
}
13 changes: 13 additions & 0 deletions tur/cppunit/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/cppunit
TERMUX_PKG_DESCRIPTION="A C++ unit testing framework"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=1.15.1
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/cppunit-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=89c5c6665337f56fd2db36bc3805a5619709d51fb136e51937072f63fcc717a7

# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
14 changes: 14 additions & 0 deletions tur/libabw/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libabw"
TERMUX_PKG_DESCRIPTION="a library that parses the file format of AbiWord documents"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.3
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/libabw/libabw-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=e763a9dc21c3d2667402d66e202e3f8ef4db51b34b79ef41f56cacb86dcd6eed
TERMUX_PKG_DEPENDS="librevenge, libxml2, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, gperf"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
15 changes: 15 additions & 0 deletions tur/libcdr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://wiki.documentfoundation.org/DLP/Libraries/libcdr
TERMUX_PKG_DESCRIPTION="CorelDraw file format importer library for LibreOffice"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.7
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/libcdr/libcdr-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=5666249d613466b9aa1e987ea4109c04365866e9277d80f6cd9663e86b8ecdd4
TERMUX_PKG_DEPENDS="libicu, librevenge, libxml2, littlecms, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, libwpg"

# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
15 changes: 15 additions & 0 deletions tur/libebook/0001-TRUE-def.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/src/lib/EBOOKCharsetConverter.cpp b/src/lib/EBOOKCharsetConverter.cpp
index 0d85fa3..3492140 100644
--- a/src/lib/EBOOKCharsetConverter.cpp
+++ b/src/lib/EBOOKCharsetConverter.cpp
@@ -9,6 +9,10 @@

#include <cassert>
#include <string>
+#ifdef __TERMUX__
+#define TRUE 1
+#define FALSE 0
+#endif

#include <unicode/ucsdet.h>

14 changes: 14 additions & 0 deletions tur/libebook/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE="https://sourceforge.net/projects/libebook/"
TERMUX_PKG_DESCRIPTION="Library for import of reflowable e-book formats."
TERMUX_PKG_LICENSE="LGPL-2.1, MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.3
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/libebook/files//libe-book-${TERMUX_PKG_VERSION}/libe-book-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=7e8d8ff34f27831aca3bc6f9cc532c2f90d2057c778963b884ff3d1e34dfe1f9
TERMUX_PKG_DEPENDS="libicu, liblangtag, librevenge, libxml2, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, cppunit, gperf"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
14 changes: 14 additions & 0 deletions tur/libepubgen/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE="https://sourceforge.net/projects/libepubgen"
TERMUX_PKG_DESCRIPTION="an EPUB generator for librevenge"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.1
TERMUX_PKG_SRCURL="https://sourceforge.net/projects/libepubgen/files/libepubgen-${TERMUX_PKG_VERSION}/libepubgen-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_SHA256=03e084b994cbeffc8c3dd13303b2cb805f44d8f2c3b79f7690d7e3fc7f6215ad
TERMUX_PKG_DEPENDS="librevenge"
TERMUX_PKG_BUILD_DEPENDS="boost, cppunit, libxml2"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
17 changes: 17 additions & 0 deletions tur/libetonyek/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TERMUX_PKG_HOMEPAGE=https://wiki.documentfoundation.org/DLP/Libraries/libetonyek
TERMUX_PKG_DESCRIPTION="CorelDraw file format importer library for LibreOffice"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.10
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/libetonyek/libetonyek-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=b430435a6e8487888b761dc848b7981626eb814884963ffe25eb26a139301e9a
TERMUX_PKG_DEPENDS="libxml2, libwpd, librevenge, liblangtag, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, cppunit, glm, mdds"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-mdds=2.1"

# TODO: detect Archlinux update

termux_step_pre_configure() {
# FIXME: wiat for the boost patch to be merged
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
8 changes: 8 additions & 0 deletions tur/libexttextcat/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TERMUX_PKG_HOMEPAGE="https://wiki.documentfoundation.org/Libexttextcat"
TERMUX_PKG_DESCRIPTION="N-Gram-Based Text Categorization library primarily intended for language guessing"
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=3.4.7
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/libexttextcat-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=df0a59d413a5b202573d8d4f5159e33a8538da4f8e8e60979facc64d6290cebd
# TODO: detect Archlinux update
13 changes: 13 additions & 0 deletions tur/libixion/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE="https://gitlab.com/ixion/ixion/blob/master/README.md"
TERMUX_PKG_DESCRIPTION="A general purpose formula parser & interpreter"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.19.0
TERMUX_PKG_SRCURL="https://gitlab.com/ixion/ixion/-/archive/${TERMUX_PKG_VERSION}/ixion-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=b5b67ea7fc631a0fda4fff3123f0cc2e3831849bdd8fbae8443be0766a77f243
TERMUX_PKG_DEPENDS="boost, python"
TERMUX_PKG_BUILD_DEPENDS="boost, mdds, libspdlog"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DMDDS_INCLUDEDIR=$TERMUX_PREFIX/include/mdds-2.1
"
14 changes: 14 additions & 0 deletions tur/liblangtag/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://bitbucket.org/tagoh/liblangtag/wiki/Home
TERMUX_PKG_DESCRIPTION="interface library to access/deal with tags for identifying languages"
TERMUX_PKG_LICENSE="LGPL-2.1, MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.6.7
TERMUX_PKG_SRCURL=https://bitbucket.org/tagoh/liblangtag/downloads/liblangtag-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=5ed6bcd4ae3f3c05c912e62f216cd1a44123846147f729a49fb5668da51e030e
TERMUX_PKG_DEPENDS="libxml2"
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-test"

# TODO: detect Archlinux update
termux_step_pre_configure() {
export ac_cv_va_copy=C99
}
14 changes: 14 additions & 0 deletions tur/libmspub/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://wiki.documentfoundation.org/DLP/Libraries/libcdr
TERMUX_PKG_DESCRIPTION="Microsoft Publisher file format parser library (latest snapshot)"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.4
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/libmspub/libmspub-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=ef36c1a1aabb2ba3b0bedaaafe717bf4480be2ba8de6f3894be5fd3702b013ba
TERMUX_PKG_DEPENDS="libwpd, libicu, libxml2, librevenge, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, libwpg"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
14 changes: 14 additions & 0 deletions tur/libmwaw/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE="https://sourceforge.net/projects/libmwaw/"
TERMUX_PKG_DESCRIPTION="Import library for some old mac text documents."
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.3.22
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/libmwaw/files/libmwaw/libmwaw-${TERMUX_PKG_VERSION}/libmwaw-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=a1a39ffcea3ff2a7a7aae0c23877ddf4918b554bf82b0de5d7ce8e7f61ea8e32
TERMUX_PKG_DEPENDS="doxygen, librevenge"
TERMUX_PKG_BUILD_DEPENDS="librevenge"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
13 changes: 13 additions & 0 deletions tur/libnumbertext/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE="https://github.com/Numbertext/libnumbertext"
TERMUX_PKG_DESCRIPTION="Number to number name and money text conversion library"
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=1.0.11
TERMUX_PKG_SRCURL=https://github.com/Numbertext/libnumbertext/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=80aad7cab123edc614f904d9f145d1d15cf465084a1a15fca2117525dc746034
TERMUX_PKG_AUTO_UPDATE=true

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
autoreconf -vfi
}
15 changes: 15 additions & 0 deletions tur/libodfgen/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/p/libwpd/wiki/libodfgen/
TERMUX_PKG_DESCRIPTION="Library for generating documents in Open Document Format"
TERMUX_PKG_LICENSE="LGPL-2.1, MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.8
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/libwpd/files/libodfgen/libodfgen-${TERMUX_PKG_VERSION}/libodfgen-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=55200027fd46623b9bdddd38d275e7452d1b0ff8aeddcad6f9ae6dc25f610625
TERMUX_PKG_DEPENDS="libxml2, librevenge, liblangtag, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, libwpg, libetonyek"

# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
18 changes: 18 additions & 0 deletions tur/liborcus/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
TERMUX_PKG_HOMEPAGE="https://gitlab.com/orcus/orcus/"
TERMUX_PKG_DESCRIPTION="File import filter library for spreadsheet documents."
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.19.2
TERMUX_PKG_SRCURL=https://gitlab.com/orcus/orcus/-/archive/${TERMUX_PKG_VERSION}/orcus-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=4fb632224aecc29e79c432f862c446b32f97b81d6855fa3773a2f11eda3d1c3b
TERMUX_PKG_DEPENDS="boost, libixion, python, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost-headers, mdds"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DMDDS_INCLUDEDIR=$TERMUX_PREFIX/include/mdds-2.1
-DIXION_INCLUDEDIR=$TERMUX_PREFIX/include/ixion-0.18
"

termux_step_pre_configure() {
LDFLAGS+=" -lboost_filesystem -lboost_system -lboost_program_options"
}
14 changes: 14 additions & 0 deletions tur/libpagemaker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker"
TERMUX_PKG_DESCRIPTION="a library that parses the file format of Aldus/Adobe PageMaker documents"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.0.4
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/libpagemaker/libpagemaker-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=66adacd705a7d19895e08eac46d1e851332adf2e736c566bef1164e7a442519d
TERMUX_PKG_DEPENDS="librevenge"
TERMUX_PKG_BUILD_DEPENDS="boost"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
22 changes: 22 additions & 0 deletions tur/libpagemaker/libpagemaker-0.0.4-const-ref-exception.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff -rauN libpagemaker-0.0.4/src/lib/PMDParser.cpp libpagemaker-0.0.4-const-ref-exception-patch/src/lib/PMDParser.cpp
--- libpagemaker-0.0.4/src/lib/PMDParser.cpp 2018-01-08 13:27:29.000000000 +0100
+++ libpagemaker-0.0.4-const-ref-exception-patch/src/lib/PMDParser.cpp 2019-12-10 20:32:26.167629754 +0100
@@ -852,7 +852,7 @@
*tocLength = readU16(m_input, m_bigEndian);
PMD_DEBUG_MSG(("[Header] TOC length is %d\n", *tocLength));
}
- catch (PMDStreamException)
+ catch (const PMDStreamException&)
{
throw PMDParseException("Can't find the table of contents length in the header.");
}
@@ -862,7 +862,7 @@
*tocOffset = readU32(m_input, m_bigEndian);
PMD_DEBUG_MSG(("[Header] TOC offset is 0x%x\n", *tocOffset));
}
- catch (PMDStreamException)
+ catch (const PMDStreamException&)
{
throw PMDParseException("Can't find the table of contents offset in the header.");
}

14 changes: 14 additions & 0 deletions tur/libqxp/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libqxp"
TERMUX_PKG_DESCRIPTION="a library that parses the file format of QuarkXPress documents"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.0.2
TERMUX_PKG_SRCURL="https://dev-www.libreoffice.org/src/libqxp/libqxp-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_SHA256=e137b6b110120a52c98edd02ebdc4095ee08d0d5295a94316a981750095a945c
TERMUX_PKG_DEPENDS="libicu, librevenge"
TERMUX_PKG_BUILD_DEPENDS="boost, cppunit"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" -lboost_filesystem -lboost_system -lboost_program_options"
}
15 changes: 15 additions & 0 deletions tur/librevenge/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://sf.net/p/libwpd/librevenge/
TERMUX_PKG_DESCRIPTION="library for REVerses ENGineered formats filters"
TERMUX_PKG_LICENSE="LGPL-2.1, MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.0.5
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/libwpd/files/librevenge/librevenge-${TERMUX_PKG_VERSION}/librevenge-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=106d0c44bb6408b1348b9e0465666fa83b816177665a22cd017e886c1aaeeb34
TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, cppunit"

# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
13 changes: 13 additions & 0 deletions tur/libstaroffice/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE="https://github.com/fosnola/libstaroffice"
TERMUX_PKG_DESCRIPTION="filter for old StarOffice documents(.sdc, .sdw, ...) based on librevenge"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.0.7
TERMUX_PKG_SRCURL=https://github.com/fosnola/libstaroffice/releases/download/${TERMUX_PKG_VERSION}/libstaroffice-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=f94fb0ad8216f97127bedef163a45886b43c62deac5e5b0f5e628e234220c8db
TERMUX_PKG_DEPENDS="librevenge, zlib"
TERMUX_PKG_AUTO_UPDATE=true

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
14 changes: 14 additions & 0 deletions tur/libvisio/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://wiki.documentfoundation.org/DLP/Libraries/libvisio
TERMUX_PKG_DESCRIPTION="Library providing ability to interpret and import visio diagrams"
TERMUX_PKG_LICENSE="MPL-2.0"
TERMUX_PKG_MAINTAINER="@termux-user-repository"
TERMUX_PKG_VERSION=0.1.7
TERMUX_PKG_SRCURL=https://dev-www.libreoffice.org/src/libvisio/libvisio-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=8faf8df870cb27b09a787a1959d6c646faa44d0d8ab151883df408b7166bea4c
TERMUX_PKG_DEPENDS="libxml2, libicu, librevenge"
TERMUX_PKG_BUILD_DEPENDS="boost, cppunit"
# TODO: detect Archlinux update

termux_step_pre_configure() {
LDFLAGS+=" $($CC -print-libgcc-file-name)"
}
Loading

0 comments on commit c68491b

Please sign in to comment.