Commit 897d8393 authored by Rasmus Thomsen's avatar Rasmus Thomsen Committed by Leo
Browse files

testing/yubikey-manager-qt: new aport

parent d60101f9
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=yubikey-manager-qt
pkgver=1.1.3
pkgrel=0
pkgdesc="Cross-platform application for configuring any YubiKey over all USB transports"
url="https://developers.yubico.com/yubikey-manager-qt/"
arch="all"
license="BSD-2-Clause"
depends="py3-ykman python3 py3-pyotherside qt5-qtquickcontrols
qt5-qtgraphicaleffects"
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtquickcontrols2-dev"
options="!check" # No test suite present
source="https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-$pkgver.tar.gz
use-py3.patch"
builddir="$srcdir/$pkgname"
build() {
qmake-qt5
make
}
package() {
make INSTALL_ROOT="$pkgdir" install
install -D -m0644 resources/ykman-gui.desktop "$pkgdir"/usr/share/applications/ykman-gui.desktop
install -D -m0644 resources/icons/ykman.png "$pkgdir"/usr/share/pixmaps/ykman.png
}
sha512sums="84bcca3f74967ba8aa470b8dd6c8699ff6a93a85ce942934a1d0cd674a4c507ba297d9a5ebb40bae3476ea713965a7bb3816dad1110a045c338f070eb249f02b yubikey-manager-qt-1.1.3.tar.gz
d3c0c11032ac7dbfc8d48f08766d3d98061f7382008f7ee257ac2fe4150fc20b14c0003b59b9a642259365b105700d52b6b2ebf4343fb5dfa72125a36a9fe6fb use-py3.patch"
diff --git a/ykman-cli/ykman-cli.pro b/ykman-cli/ykman-cli.pro
index bd941d7..b6fbfbc 100644
--- a/ykman-cli/ykman-cli.pro
+++ b/ykman-cli/ykman-cli.pro
@@ -6,7 +6,7 @@ CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
-buildqrc.commands = python ../build_qrc.py ${QMAKE_FILE_IN}
+buildqrc.commands = python3 ../build_qrc.py ${QMAKE_FILE_IN}
buildqrc.input = QRC_JSON
buildqrc.output = ${QMAKE_FILE_IN_BASE}.qrc
buildqrc.variable_out = RESOURCES
@@ -14,7 +14,7 @@ QMAKE_STRIPFLAGS_LIB += --strip-unneeded
QMAKE_EXTRA_COMPILERS += buildqrc
QRC_JSON = resources.json
# Generate first time
-system(python ../build_qrc.py resources.json)
+system(python3 ../build_qrc.py resources.json)
# Install python dependencies with pip for win and mac
mac|win32 {
diff --git a/ykman-gui/ykman-gui.pro b/ykman-gui/ykman-gui.pro
index f9772f5..b9c0df1 100644
--- a/ykman-gui/ykman-gui.pro
+++ b/ykman-gui/ykman-gui.pro
@@ -14,7 +14,7 @@ DEFINES += APP_VERSION=\\\"1.1.3\\\"
message(Version of this build: $$VERSION)
-buildqrc.commands = python ../build_qrc.py ${QMAKE_FILE_IN}
+buildqrc.commands = python3 ../build_qrc.py ${QMAKE_FILE_IN}
buildqrc.input = QRC_JSON
buildqrc.output = ${QMAKE_FILE_IN_BASE}.qrc
buildqrc.variable_out = RESOURCES
@@ -25,7 +25,7 @@ QMAKE_EXTRA_COMPILERS += buildqrc
QRC_JSON = resources.json
# Generate first time
-system(python ../build_qrc.py resources.json)
+system(python3 ../build_qrc.py resources.json)
# Install python dependencies with pip on mac and win
win32|macx {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment