new package: qscintilla (#309)
This commit is contained in:
parent
6363fc065e
commit
9c8cde9f16
32
x11-packages/qscintilla/build.sh
Normal file
32
x11-packages/qscintilla/build.sh
Normal file
@ -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 <symeon@librehat.com>"
|
||||
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
|
||||
}
|
||||
}
|
||||
|
12
x11-packages/qscintilla/no_accessibility.patch
Normal file
12
x11-packages/qscintilla/no_accessibility.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user