new package: keepassxc
Note: contains both cli & gui variants. However as they all depend on Qt libraries, splitting cli version to separate package is pointless.
This commit is contained in:
parent
53b547f146
commit
bacf0ac1b7
14
x11-packages/keepassxc/build.sh
Normal file
14
x11-packages/keepassxc/build.sh
Normal file
@ -0,0 +1,14 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://keepassxc.org/
|
||||
TERMUX_PKG_DESCRIPTION="Cross-platform community-driven port of Keepass password manager"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=2.6.6
|
||||
TERMUX_PKG_SRCURL="https://github.com/keepassxreboot/keepassxc/releases/download/${TERMUX_PKG_VERSION}/keepassxc-${TERMUX_PKG_VERSION}-src.tar.xz"
|
||||
TERMUX_PKG_SHA256=3603b11ac39b289c47fac77fa150e05fd64b393d8cfdf5732dc3ef106650a4e2
|
||||
TERMUX_PKG_DEPENDS="argon2, libcurl, libgcrypt, libqrencode, libsodium, libxtst, qt5-qtbase, qt5-qtsvg, qt5-qtx11extras"
|
||||
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-DWITH_XC_NETWORKING=ON
|
||||
-DWITH_XC_SSHAGENT=ON
|
||||
-DWITH_XC_UPDATECHECK=OFF
|
||||
"
|
14
x11-packages/keepassxc/src-core-FileWatcher.cpp.patch
Normal file
14
x11-packages/keepassxc/src-core-FileWatcher.cpp.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -uNr keepassxc-2.6.6/src/core/FileWatcher.cpp keepassxc-2.6.6.mod/src/core/FileWatcher.cpp
|
||||
--- keepassxc-2.6.6/src/core/FileWatcher.cpp 2021-06-12 05:13:52.000000000 +0300
|
||||
+++ keepassxc-2.6.6.mod/src/core/FileWatcher.cpp 2021-07-25 20:21:11.853398555 +0300
|
||||
@@ -47,8 +47,9 @@
|
||||
#if defined(Q_OS_LINUX)
|
||||
struct statfs statfsBuf;
|
||||
bool forcePolling = false;
|
||||
+#ifndef NFS_SUPER_MAGIC
|
||||
const auto NFS_SUPER_MAGIC = 0x6969;
|
||||
-
|
||||
+#endif
|
||||
if (!statfs(filePath.toLocal8Bit().constData(), &statfsBuf)) {
|
||||
forcePolling = (statfsBuf.f_type == NFS_SUPER_MAGIC);
|
||||
} else {
|
31
x11-packages/keepassxc/src-gui-entry-EntryView.cpp.patch
Normal file
31
x11-packages/keepassxc/src-gui-entry-EntryView.cpp.patch
Normal file
@ -0,0 +1,31 @@
|
||||
diff -uNr keepassxc-2.6.6/src/gui/entry/EntryView.cpp keepassxc-2.6.6.mod/src/gui/entry/EntryView.cpp
|
||||
--- keepassxc-2.6.6/src/gui/entry/EntryView.cpp 2021-06-12 05:13:52.000000000 +0300
|
||||
+++ keepassxc-2.6.6.mod/src/gui/entry/EntryView.cpp 2021-07-25 20:39:53.910034225 +0300
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "EntryView.h"
|
||||
|
||||
-#include <QAccessible>
|
||||
+#include <QCoreApplication>
|
||||
#include <QHeaderView>
|
||||
#include <QKeyEvent>
|
||||
#include <QMenu>
|
||||
@@ -150,18 +150,15 @@
|
||||
|
||||
int last = m_model->rowCount() - 1;
|
||||
if (last > 0) {
|
||||
- QAccessibleEvent accessibleEvent(this, QAccessible::PageChanged);
|
||||
if (event->key() == Qt::Key_Up && currentIndex().row() == 0) {
|
||||
QModelIndex index = m_sortModel->mapToSource(m_sortModel->index(last, 0));
|
||||
setCurrentEntry(m_model->entryFromIndex(index));
|
||||
- QAccessible::updateAccessibility(&accessibleEvent);
|
||||
return;
|
||||
}
|
||||
|
||||
if (event->key() == Qt::Key_Down && currentIndex().row() == last) {
|
||||
QModelIndex index = m_sortModel->mapToSource(m_sortModel->index(0, 0));
|
||||
setCurrentEntry(m_model->entryFromIndex(index));
|
||||
- QAccessible::updateAccessibility(&accessibleEvent);
|
||||
return;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user