From 141e33d2196d251eda027c50ea50a8f7bbb790ae Mon Sep 17 00:00:00 2001 From: Symeon Huang Date: Thu, 20 May 2021 17:14:14 +0100 Subject: [PATCH] add lxqt-runner package (math disabled) --- x11-packages/lxqt-runner/build.sh | 12 +++++++ x11-packages/lxqt-runner/no_mathitem.patch | 14 ++++++++ .../lxqt-runner/without_wordexp.patch | 36 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 x11-packages/lxqt-runner/build.sh create mode 100644 x11-packages/lxqt-runner/no_mathitem.patch create mode 100644 x11-packages/lxqt-runner/without_wordexp.patch diff --git a/x11-packages/lxqt-runner/build.sh b/x11-packages/lxqt-runner/build.sh new file mode 100644 index 000000000..ff06c2ad3 --- /dev/null +++ b/x11-packages/lxqt-runner/build.sh @@ -0,0 +1,12 @@ +TERMUX_PKG_HOMEPAGE=https://lxqt.github.io +TERMUX_PKG_DESCRIPTION="LXQt application launcher" +TERMUX_PKG_LICENSE="LGPL-2.1" +TERMUX_PKG_MAINTAINER="Simeon Huang " +TERMUX_PKG_VERSION=0.17.0 +TERMUX_PKG_SRCURL="https://github.com/lxqt/lxqt-runner/releases/download/${TERMUX_PKG_VERSION}/lxqt-runner-${TERMUX_PKG_VERSION}.tar.xz" +TERMUX_PKG_SHA256=24a68c50961e1157aabdb9a3899727f50012b77e401c15447c9bdc3af792a358 +TERMUX_PKG_DEPENDS="qt5-qtbase, libqtxdg, kwindowsystem, liblxqt, lxqt-globalkeys" +TERMUX_PKG_BUILD_DEPENDS="cmake, perl, lxqt-build-tools, qt5-qtbase-cross-tools, qt5-qttools-cross-tools" +# TODO runner math depends on muparser +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DRUNNER_MATH=OFF" + diff --git a/x11-packages/lxqt-runner/no_mathitem.patch b/x11-packages/lxqt-runner/no_mathitem.patch new file mode 100644 index 000000000..f162604fc --- /dev/null +++ b/x11-packages/lxqt-runner/no_mathitem.patch @@ -0,0 +1,14 @@ +We've disabled math plugin at the moment. +This patch is probably not needed when -DRUNNER_MATH=ON +--- src/dialog.cpp 2021-04-11 09:01:40.000000000 +0000 ++++ src.mod/dialog.cpp 2021-05-20 16:11:59.594667000 +0000 +@@ -498,8 +498,7 @@ + if (res) + { + hide(); +- if (!qobject_cast(command)) // don't clear math results +- ui->commandEd->clear(); ++ ui->commandEd->clear(); + } + + } diff --git a/x11-packages/lxqt-runner/without_wordexp.patch b/x11-packages/lxqt-runner/without_wordexp.patch new file mode 100644 index 000000000..cb61ea705 --- /dev/null +++ b/x11-packages/lxqt-runner/without_wordexp.patch @@ -0,0 +1,36 @@ +--- src/providers.cpp 2021-04-11 09:01:40.000000000 +0000 ++++ src.mod/providers.cpp 2021-05-20 16:11:17.052885000 +0000 +@@ -48,7 +48,6 @@ + #include + #include "providers.h" + #include +-#include + #include + + #define MAX_HISTORY 100 +@@ -59,24 +58,7 @@ + ************************************************/ + static QString expandCommand(const QString &command, QStringList *arguments=0) + { +- QString program; +- wordexp_t words; +- +- if (wordexp(command.toLocal8Bit().data(), &words, 0) != 0) +- return QString(); +- +- char **w; +- w = words.we_wordv; +- program = QString::fromLocal8Bit(w[0]); +- +- if (arguments) +- { +- for (size_t i = 1; i < words.we_wordc; i++) +- *arguments << QString::fromLocal8Bit(w[i]); +- } +- +- wordfree(&words); +- return program; ++ return QString(); + } + +