From 9c8cde9f16a9d9ae9932b46cceccebd79ac26c7f Mon Sep 17 00:00:00 2001 From: Simeon Huang Date: Mon, 10 May 2021 13:00:58 +0100 Subject: [PATCH] new package: qscintilla (#309) --- x11-packages/qscintilla/build.sh | 32 +++++++++++++++++++ .../qscintilla/no_accessibility.patch | 12 +++++++ 2 files changed, 44 insertions(+) create mode 100644 x11-packages/qscintilla/build.sh create mode 100644 x11-packages/qscintilla/no_accessibility.patch diff --git a/x11-packages/qscintilla/build.sh b/x11-packages/qscintilla/build.sh new file mode 100644 index 000000000..4d47fb99b --- /dev/null +++ b/x11-packages/qscintilla/build.sh @@ -0,0 +1,32 @@ +TERMUX_PKG_HOMEPAGE=https://riverbankcomputing.com/software/qscintilla +TERMUX_PKG_DESCRIPTION="QScintilla is a port to Qt of the Scintilla editing component" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="Simeon Huang " +TERMUX_PKG_VERSION=2.12.1 +TERMUX_PKG_REVISION=2 +TERMUX_PKG_SRCURL="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${TERMUX_PKG_VERSION}/QScintilla_src-${TERMUX_PKG_VERSION}.tar.gz" +TERMUX_PKG_SHA256=a7331c44b5d7320cbf58cb2382c38857e9e9f4fa52c405bd7776c8b6649836c2 +TERMUX_PKG_DEPENDS="qt5-qtbase" +# qttools is only needed to build Qt Designer's plugins +TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools" +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_NO_STATICSPLIT=true +TERMUX_PKG_EXTRA_MAKE_ARGS="-C src" + +termux_step_configure () { + for i in src designer; do + cd "${TERMUX_PKG_SRCDIR}/${i}" && { + "${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \ + -spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" + } + done + unset i +} + +termux_step_post_make_install() { + cd "${TERMUX_PKG_SRCDIR}/designer" && { + make -j "${TERMUX_MAKE_PROCESSES}" + make install + } +} + diff --git a/x11-packages/qscintilla/no_accessibility.patch b/x11-packages/qscintilla/no_accessibility.patch new file mode 100644 index 000000000..07f7b71d0 --- /dev/null +++ b/x11-packages/qscintilla/no_accessibility.patch @@ -0,0 +1,12 @@ +qt5-qtbase in Termux doesn't build accessibility +--- src/src/qscintilla.pro 2021-05-09 12:23:05.233865021 +0000 ++++ src.mod/src/qscintilla.pro 2021-05-09 12:22:58.033891538 +0000 +@@ -23,6 +23,8 @@ + TEMPLATE = lib + CONFIG += qt warn_off thread exceptions hide_symbols + ++DEFINES += QT_NO_ACCESSIBILITY ++ + CONFIG(debug, debug|release) { + mac: { + TARGET = qscintilla2_qt$${QT_MAJOR_VERSION}_debug