add lxqt-runner package (math disabled)
This commit is contained in:
parent
73b00b55d1
commit
141e33d219
12
x11-packages/lxqt-runner/build.sh
Normal file
12
x11-packages/lxqt-runner/build.sh
Normal file
@ -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 <symeon@librehat.com>"
|
||||
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"
|
||||
|
14
x11-packages/lxqt-runner/no_mathitem.patch
Normal file
14
x11-packages/lxqt-runner/no_mathitem.patch
Normal file
@ -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<const MathItem*>(command)) // don't clear math results
|
||||
- ui->commandEd->clear();
|
||||
+ ui->commandEd->clear();
|
||||
}
|
||||
|
||||
}
|
36
x11-packages/lxqt-runner/without_wordexp.patch
Normal file
36
x11-packages/lxqt-runner/without_wordexp.patch
Normal file
@ -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 <LXQt/ScreenSaver>
|
||||
#include "providers.h"
|
||||
#include <LXQtGlobalKeys/Action>
|
||||
-#include <wordexp.h>
|
||||
#include <QStandardPaths>
|
||||
|
||||
#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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user