mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-22 03:30:17 +00:00
Update repo
This commit is contained in:
50
disabled-packages/otter-browser/0001-hardcoded-paths.patch
Normal file
50
disabled-packages/otter-browser/0001-hardcoded-paths.patch
Normal file
@@ -0,0 +1,50 @@
|
||||
diff --color -uNr src/3rdparty/breakpad/src/client/linux/crash_generation/crash_generation_server.cc src.mod/3rdparty/breakpad/src/client/linux/crash_generation/crash_generation_server.cc
|
||||
--- src/3rdparty/breakpad/src/client/linux/crash_generation/crash_generation_server.cc 2020-12-21 21:34:21.000000000 +0000
|
||||
+++ src.mod/3rdparty/breakpad/src/client/linux/crash_generation/crash_generation_server.cc 2021-05-22 17:09:44.802941078 +0100
|
||||
@@ -72,7 +72,7 @@
|
||||
if (dump_path)
|
||||
dump_dir_ = *dump_path;
|
||||
else
|
||||
- dump_dir_ = "/tmp";
|
||||
+ dump_dir_ = "@TERMUX_PREFIX@/tmp";
|
||||
}
|
||||
|
||||
CrashGenerationServer::~CrashGenerationServer()
|
||||
diff --color -uNr src/3rdparty/breakpad/src/client/linux/minidump_writer/minidump_writer.cc src.mod/3rdparty/breakpad/src/client/linux/minidump_writer/minidump_writer.cc
|
||||
--- src/3rdparty/breakpad/src/client/linux/minidump_writer/minidump_writer.cc 2020-12-21 21:34:21.000000000 +0000
|
||||
+++ src.mod/3rdparty/breakpad/src/client/linux/minidump_writer/minidump_writer.cc 2021-05-22 17:08:14.343199518 +0100
|
||||
@@ -229,7 +229,7 @@
|
||||
dir.CopyIndex(dir_index++, &dirent);
|
||||
|
||||
dirent.stream_type = MD_LINUX_LSB_RELEASE;
|
||||
- if (!WriteFile(&dirent.location, "/etc/lsb-release"))
|
||||
+ if (!WriteFile(&dirent.location, "@TERMUX_PREFIX@/etc/lsb-release"))
|
||||
NullifyDirectoryEntry(&dirent);
|
||||
dir.CopyIndex(dir_index++, &dirent);
|
||||
|
||||
diff --color -uNr src/3rdparty/libmimeapps/Tools.cpp src.mod/3rdparty/libmimeapps/Tools.cpp
|
||||
--- src/3rdparty/libmimeapps/Tools.cpp 2020-12-21 21:34:21.000000000 +0000
|
||||
+++ src.mod/3rdparty/libmimeapps/Tools.cpp 2021-05-22 17:05:20.315735013 +0100
|
||||
@@ -166,8 +166,8 @@
|
||||
std::map<std::string, std::string> defaultVariableValues;
|
||||
defaultVariableValues["XDG_DATA_HOME"] = std::string("$HOME/.local/share");
|
||||
defaultVariableValues["XDG_CONFIG_HOME"] = std::string("$HOME/.config");
|
||||
- defaultVariableValues["XDG_DATA_DIRS"] = std::string("/usr/local/share/:/usr/share/");
|
||||
- defaultVariableValues["XDG_CONFIG_DIRS"] = std::string("/etc/xdg");
|
||||
+ defaultVariableValues["XDG_DATA_DIRS"] = std::string("@TERMUX_PREFIX@/local/share/:@TERMUX_PREFIX@/share/");
|
||||
+ defaultVariableValues["XDG_CONFIG_DIRS"] = std::string("@TERMUX_PREFIX@/etc/xdg");
|
||||
|
||||
if (defaultVariableValues.find(name) != defaultVariableValues.end())
|
||||
{
|
||||
diff --color -uNr src/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp src.mod/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp
|
||||
--- src/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp 2020-12-21 21:34:21.000000000 +0000
|
||||
+++ src.mod/3rdparty/sonnet/src/plugins/hunspell/hunspellclient.cpp 2021-05-22 17:06:28.327518090 +0100
|
||||
@@ -57,7 +57,7 @@
|
||||
#ifdef Q_OS_MAC
|
||||
directories << QLatin1String("/System/Library/Spelling/");
|
||||
#else
|
||||
- directories << QLatin1String("/usr/share/hunspell/") << QLatin1String("/usr/local/share/hunspell/") << QLatin1String("/usr/share/myspell/") << QLatin1String("/usr/share/myspell/dicts/") << QLatin1String("/usr/local/share/mozilla-dicts/");
|
||||
+ directories << QLatin1String("@TERMUX_PREFIX@/share/hunspell/") << QLatin1String("@TERMUX_PREFIX@/local/share/hunspell/") << QLatin1String("@TERMUX_PREFIX@/share/myspell/") << QLatin1String("@TERMUX_PREFIX@/share/myspell/dicts/") << QLatin1String("@TERMUX_PREFIX@/local/share/mozilla-dicts/");
|
||||
#endif
|
||||
|
||||
const QString otterDirectory(qgetenv("OTTER_DICTIONARIES"));
|
||||
@@ -0,0 +1,32 @@
|
||||
https://github.com/OtterBrowser/otter-browser/commit/4de69f164a77630e5a589b819521e151c797c08c
|
||||
|
||||
--- a/src/modules/backends/web/qtwebengine/QtWebEngineWebWidget.cpp
|
||||
+++ b/src/modules/backends/web/qtwebengine/QtWebEngineWebWidget.cpp
|
||||
@@ -1965,16 +1965,21 @@
|
||||
case QEvent::MouseButtonPress:
|
||||
case QEvent::Wheel:
|
||||
{
|
||||
- const QMouseEvent *mouseEvent(static_cast<QMouseEvent*>(event));
|
||||
+ QMouseEvent *mouseEvent(nullptr);
|
||||
|
||||
- if (mouseEvent)
|
||||
+ if (event->type() != QEvent::Wheel)
|
||||
{
|
||||
- setClickPosition(mouseEvent->pos());
|
||||
- updateHitTestResult(mouseEvent->pos());
|
||||
+ mouseEvent = static_cast<QMouseEvent*>(event);
|
||||
|
||||
- if (mouseEvent->button() == Qt::LeftButton && !getCurrentHitTestResult().linkUrl.isEmpty())
|
||||
+ if (mouseEvent)
|
||||
{
|
||||
- m_lastUrlClickTime = QDateTime::currentDateTime();
|
||||
+ setClickPosition(mouseEvent->pos());
|
||||
+ updateHitTestResult(mouseEvent->pos());
|
||||
+
|
||||
+ if (mouseEvent->button() == Qt::LeftButton && !getCurrentHitTestResult().linkUrl.isEmpty())
|
||||
+ {
|
||||
+ m_lastUrlClickTime = QDateTime::currentDateTime();
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From 7b77a9288e728ae3fbc45e06c2f6a21501875444 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20Dutkiewicz?= <emdeck@gmail.com>
|
||||
Date: Tue, 2 Jul 2019 22:54:56 +0200
|
||||
Subject: [PATCH] Bump required CMake version to 3.7.0
|
||||
|
||||
---
|
||||
CMakeLists.txt | 10 +---------
|
||||
1 file changed, 1 insertion(+), 9 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ae4843c865..4999e2699b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,12 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.1.0)
|
||||
-
|
||||
-if (POLICY CMP0020)
|
||||
- cmake_policy(SET CMP0020 NEW)
|
||||
-endif ()
|
||||
-
|
||||
-if (POLICY CMP0043)
|
||||
- cmake_policy(SET CMP0043 NEW)
|
||||
-endif ()
|
||||
+cmake_minimum_required(VERSION 3.7.0)
|
||||
|
||||
project(otter-browser)
|
||||
|
||||
16
disabled-packages/otter-browser/build.sh
Normal file
16
disabled-packages/otter-browser/build.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://otter-browser.org
|
||||
TERMUX_PKG_DESCRIPTION="Web browser with aspects of Opera (12.x)"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@licy183"
|
||||
TERMUX_PKG_VERSION=1.0.03
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SRCURL="https://github.com/OtterBrowser/otter-browser/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
|
||||
TERMUX_PKG_SHA256=2b07d22a5d921ec0b3d29a680eb913c3fe0713ca7d10e37873a3802d1a5154a3
|
||||
TERMUX_PKG_DEPENDS="hunspell, libc++, qt5-qtbase, qt5-qtdeclarative, qt5-qtmultimedia, qt5-qtsvg, qt5-qtwebengine, qt5-qtxmlpatterns"
|
||||
TERMUX_PKG_NO_STATICSPLIT=true
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-DENABLE_QTWEBENGINE=ON
|
||||
-DENABLE_QTWEBKIT=OFF
|
||||
-DENABLE_CRASHREPORTS=OFF
|
||||
-DENABLE_SPELLCHECK=ON
|
||||
"
|
||||
Reference in New Issue
Block a user