Skip to content

Commit

Permalink
qtkeychain-qt5: update to 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yopito committed Nov 18, 2020
1 parent 6e0eacc commit c4d11fe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion srcpkgs/qtkeychain-qt5/INSTALL.msg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
To actually use qtkeychain-qt5 you need to either have kwallet or
libgnome-keyring installed.
gnome-keyring installed.
15 changes: 15 additions & 0 deletions srcpkgs/qtkeychain-qt5/patches/use-kwallet-dbus-def.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Use kwallet interface definition from the kwallet package,
instead of using the out-of-date provided in qtkeychain package
see https://github.com/frankosterfeld/qtkeychain/issues/172

--- CMakeLists.txt.ORIG 2020-09-08 15:13:16.000000000 +0200
+++ CMakeLists.txt 2020-11-13 13:50:56.648621533 +0100
@@ -169,7 +169,7 @@

add_definitions(-DKEYCHAIN_DBUS=1)
list(APPEND qtkeychain_SOURCES keychain_unix.cpp gnomekeyring.cpp libsecret.cpp plaintextstore.cpp)
- qt_add_dbus_interface(qtkeychain_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.KWallet.xml kwallet_interface KWalletInterface)
+ qt_add_dbus_interface(qtkeychain_SOURCES /usr/share/dbus-1/interfaces/kf5_org.kde.KWallet.xml kwallet_interface KWalletInterface)
list(APPEND qtkeychain_LIBRARIES ${QTDBUS_LIBRARIES} )
endif()

14 changes: 10 additions & 4 deletions srcpkgs/qtkeychain-qt5/template
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# Template file for 'qtkeychain-qt5'
pkgname=qtkeychain-qt5
version=0.9.1
revision=2
version=0.11.1
revision=1
wrksrc="${pkgname%-*}-${version}"
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libsecret-devel qt5-tools-devel"
makedepends="libsecret-devel qt5-tools-devel kwallet"
short_desc="Platform-independent Qt5 API for storing passwords securely"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/frankosterfeld/qtkeychain"
distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/v${version}.tar.gz"
checksum=9c2762d9d0759a65cdb80106d547db83c6e9fdea66f1973c6e9014f867c6f28e
checksum=77fc6841c1743d9e6bd499989481cd9239c21bc9bf0760d41a4f4068d2f0a49d

if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-tools-devel"
fi

post_patch() {
# ensure it's not used (see dedicated patch)
rm org.kde.KWallet.xml
}

post_install() {
vlicense COPYING
}
Expand All @@ -28,5 +33,6 @@ qtkeychain-qt5-devel_package() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/*.so
vmove usr/lib/qt5/mkspecs
}
}

0 comments on commit c4d11fe

Please sign in to comment.