aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-09-27 20:41:24 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-09-27 22:02:20 -0300
commit897d8393f0bacf2e54b65b9b2b2880a1a649b03f (patch)
tree135a0d1c85c25574822185ada0bb2a1546ab876f
parentd60101f9a69a81fe47bca002d4220c421e0a1a19 (diff)
downloadaports-897d8393f0bacf2e54b65b9b2b2880a1a649b03f.tar.bz2
aports-897d8393f0bacf2e54b65b9b2b2880a1a649b03f.tar.xz
testing/yubikey-manager-qt: new aport
-rw-r--r--testing/yubikey-manager-qt/APKBUILD31
-rw-r--r--testing/yubikey-manager-qt/use-py3.patch44
2 files changed, 75 insertions, 0 deletions
diff --git a/testing/yubikey-manager-qt/APKBUILD b/testing/yubikey-manager-qt/APKBUILD
new file mode 100644
index 0000000000..66600a6613
--- /dev/null
+++ b/testing/yubikey-manager-qt/APKBUILD
@@ -0,0 +1,31 @@
+# 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/testing/yubikey-manager-qt/use-py3.patch b/testing/yubikey-manager-qt/use-py3.patch
new file mode 100644
index 0000000000..f8a7333e28
--- /dev/null
+++ b/testing/yubikey-manager-qt/use-py3.patch
@@ -0,0 +1,44 @@
+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 {