aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-solo/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-solo/APKBUILD')
-rw-r--r--community/py3-solo/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/py3-solo/APKBUILD b/community/py3-solo/APKBUILD
new file mode 100644
index 0000000000..841ed9cae0
--- /dev/null
+++ b/community/py3-solo/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Clayton Craft <clayton@craftyguy.net>
+# Maintainer: Clayton Craft <clayton@craftyguy.net>
+pkgname=py3-solo
+_pkgname=solo-python
+pkgver=0.0.27
+pkgrel=1
+pkgdesc="Python3 tool and library for SoloKeys"
+url="https://github.com/solokeys/solo-python"
+arch="noarch"
+license="MIT"
+depends="
+ py3-click
+ py3-cryptography
+ py3-ecdsa
+ py3-fido2
+ py3-intelhex
+ py3-pyserial
+ py3-requests
+ py3-usb
+ "
+makedepends="pyproject2setuppy py3-setuptools"
+source="
+ $pkgname-$pkgver.tar.gz::https://github.com/solokeys/solo-python/archive/$pkgver.tar.gz
+ create-setuppy.patch
+ 70-solokey.rules
+ "
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py check
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ install -Dm644 "$srcdir"/70-solokey.rules \
+ "$pkgdir"/usr/lib/udev/rules.d/70-solokey.rules
+}
+
+sha512sums="50d564916e07a0c65a843bd2d0328a735ba71eadcfc893b13fac84a3e51822ed2bf80fc3f7662943a5635c6cd6b3ded8ba5b5a9ac2282c9f9bcdfe9de191e445 py3-solo-0.0.27.tar.gz
+1b561db05974468eecec48f2b4e0f705b4bb9bdfdf6a1c1ce40ad884824ca468243cd4296325674fa311b3ce32827d924383f814c8475b6ccddad302a5c23f51 create-setuppy.patch
+1965441c95bcc534192f979bd1bf59dc0c6738e417a5688dd065c81963f5db29e7683e1d771d3eb9e875e93669999a21bd9bbf48a570ab161db3b5323a169526 70-solokey.rules"