testing/nitrokey-app2: new aport

This commit is contained in:
Bart Ribbers 2023-05-01 11:24:51 +02:00
parent 1167774e02
commit b2d6568b2c

View File

@ -0,0 +1,44 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nitrokey-app2
pkgver=2.0.1
pkgrel=0
pkgdesc="Nitrokey management application"
url="https://github.com/Nitrokey/nitrokey-app2"
# s390x, ppc64le and riscv64 blocked by py3-spsdk -> py3-pynitrokey
arch="noarch !s390x !ppc64le !riscv64"
license="Apache-2.0"
depends="
py3-pynitrokey
py3-qt5
py3-udev
python3
"
makedepends="
py3-flit-core
py3-gpep517
py3-installer
py3-setuptools
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Nitrokey/nitrokey-app2/archive/refs/tags/v$pkgver.tar.gz
https://github.com/Nitrokey/nitrokey-app2/commit/3c20cf98216ed77ff9014d983fe2a242fbbeee07.patch
"
options="!check" # No tests
build() {
make build-ui
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
b6f9455eeee79d185def8ef6745d0b9032675eb98f6f800ccfc96472f9190a759d212bdf2e81d5f4218a9c0f20c5326e6ec0ab07fa3dee8773e89e75e0669b1a nitrokey-app2-2.0.1.tar.gz
6b467f39498826cf1266c8263c461fa91d55af6e8958803cfa61b58b5b42a23a75a953b759b4629014160f7393522d33e56a61e0dad4f6fb44cfd55651231cab 3c20cf98216ed77ff9014d983fe2a242fbbeee07.patch
"