summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Aranguren2020-11-15 19:11:04 +1100
committerLuis Aranguren2020-11-15 19:11:04 +1100
commit7c9a9d4e6df11e36f6c8ca3f3a2a454090f58392 (patch)
treef49ebfcae816b13751a3508ea57e604d63b0e4d4
downloadaur-7c9a9d4e6df11e36f6c8ca3f3a2a454090f58392.tar.gz
9.2.1
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD26
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8225b9c7597
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-bitbox02
+ pkgdesc = Python code to communicate with BitBox02 cryptocurrency wallet
+ pkgver = 9.2.1
+ pkgrel = 1
+ url = https://github.com/digitalbitbox/bitbox02-firmware
+ arch = any
+ license = Apache
+ depends = python
+ depends = bitbox-udev
+ depends = python-tzlocal
+ depends = python-pyserial
+ depends = python-requests
+ depends = python-base58
+ depends = python-semver
+ depends = python-noiseprotocol-git
+ options = !emptydirs
+ source = bitbox02-firmware-firmware-btc-only-v9.2.1::https://github.com/digitalbitbox/bitbox02-firmware/archive/firmware-btc-only/v9.2.1.tar.gz
+ sha256sums = 0036a13b114760adc1fdb719cc97033a9dabe44f1a713e120ded4a917d905a2a
+
+pkgname = python-bitbox02
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6d4ec12e84a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
+
+pkgname=python-bitbox02
+_pkgname=bitbox02-firmware-firmware-btc-only
+pkgver=9.2.1
+pkgrel=1
+pkgdesc="Python code to communicate with BitBox02 cryptocurrency wallet"
+arch=('any')
+depends=('python' 'bitbox-udev' 'python-tzlocal' 'python-pyserial' 'python-requests' 'python-base58' 'python-semver' 'python-noiseprotocol-git')
+makedepends=()
+url="https://github.com/digitalbitbox/bitbox02-firmware"
+license=('Apache')
+options=('!emptydirs')
+source=($_pkgname-v$pkgver::https://github.com/digitalbitbox/bitbox02-firmware/archive/firmware-btc-only/v$pkgver.tar.gz)
+sha256sums=('0036a13b114760adc1fdb719cc97033a9dabe44f1a713e120ded4a917d905a2a')
+
+build() {
+ cd "$srcdir/$_pkgname-v$pkgver/py/bitbox02"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_pkgname-v$pkgver/py/bitbox02"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}