summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbitcoinlizard2021-06-12 08:47:36 -0500
committerbitcoinlizard2021-06-12 08:47:36 -0500
commite467bd5dc0262898b3cfe2ddc01c1325efb4e205 (patch)
tree251cbb76e7a98acc7a606dfdca52dda4a51827b9
parent62ac8aea5f7c59ee082d1f3a44f71b95e8a45795 (diff)
downloadaur-e467bd5dc0262898b3cfe2ddc01c1325efb4e205.tar.gz
package bumped to 2.0.2, resolved issue with hwi-qt
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD18
-rw-r--r--generate-ui.patch12
3 files changed, 30 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cbc63974646..7d28897267e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,26 @@
pkgbase = python-hwilib
pkgdesc = The Bitcoin Hardware Wallet Interface is a Python library and command line tool for interacting with hardware wallets.
- pkgver = 2.0.1
+ pkgver = 2.0.2
pkgrel = 1
url = https://github.com/bitcoin-core/HWI
arch = any
license = MIT
makedepends = python-setuptools
+ makedepends = qt5-base
depends = python
depends = libusb
depends = systemd-libs
+ depends = pyside2
+ depends = pyside2-tools
depends = python-libusb1
depends = python-base58
depends = python-bitbox02
depends = python-hidapi
depends = python-cryptography
depends = python-mnemonic
- source = https://github.com/bitcoin-core/HWI/archive/refs/tags/2.0.1.tar.gz
- sha256sums = e758f4b83928a4d71b7541958ac6c130cc137e14161942fdec8c812afb2130db
+ source = https://github.com/bitcoin-core/HWI/archive/refs/tags/2.0.2.tar.gz
+ source = generate-ui.patch
+ sha256sums = fe240431f8395e51e078a6688b48384d6118c10f5a3bd44b1c3bb186fd9f1841
+ sha256sums = SKIP
pkgname = python-hwilib
-
diff --git a/PKGBUILD b/PKGBUILD
index d579f26fdc0..907562b0799 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,33 @@
# Maintainer: bitcoinlizard <bitcoinlizard@fastmail.com>
pkgname=python-hwilib
-pkgver=2.0.1
+pkgver=2.0.2
pkgrel=1
pkgdesc="The Bitcoin Hardware Wallet Interface is a Python library and command line tool for interacting with hardware wallets."
arch=('any')
url="https://github.com/bitcoin-core/HWI"
license=('MIT')
-makedepends=('python-setuptools')
-depends=('python' 'libusb' 'systemd-libs' 'python-libusb1' 'python-base58' 'python-bitbox02' 'python-hidapi' 'python-cryptography' 'python-mnemonic')
+makedepends=('python-setuptools' 'qt5-base')
+depends=('python' 'libusb' 'systemd-libs' 'pyside2' 'pyside2-tools' 'python-libusb1' 'python-base58' 'python-bitbox02' 'python-hidapi' 'python-cryptography' 'python-mnemonic')
-source=("https://github.com/bitcoin-core/HWI/archive/refs/tags/${pkgver}.tar.gz")
-sha256sums=('e758f4b83928a4d71b7541958ac6c130cc137e14161942fdec8c812afb2130db')
+source=("https://github.com/bitcoin-core/HWI/archive/refs/tags/${pkgver}.tar.gz"
+ "generate-ui.patch")
+sha256sums=('fe240431f8395e51e078a6688b48384d6118c10f5a3bd44b1c3bb186fd9f1841'
+ 'SKIP')
prepare() {
- cd "HWI-${pkgver}"
+ cd "HWI-${pkgver}/contrib"
+ patch --forward --strip=1 --input="${srcdir}/generate-ui.patch"
}
build() {
cd "HWI-${pkgver}"
-
+ sh contrib/generate-ui.sh
python setup.py build
}
package() {
cd "HWI-${pkgver}"
-
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
# Install license since the package doesn't include it
diff --git a/generate-ui.patch b/generate-ui.patch
new file mode 100644
index 00000000000..b0a97f81f75
--- /dev/null
+++ b/generate-ui.patch
@@ -0,0 +1,12 @@
+diff --unified --recursive --text contrib/generate-ui.sh contrib/generate-ui.sh
+--- contrib/generate-ui.sh 2021-05-26 09:09:24.201859849 -0500
++++ contrib/generate-ui.sh 2021-05-26 09:09:52.895185350 -0500
+@@ -6,7 +6,7 @@
+ for file in *.ui
+ do
+ gen_file=ui_`echo $file| cut -d. -f1`.py
+- pyside2-uic $file -o $gen_file
++ uic -g python $file -o $gen_file
+ sed -i'' -e 's/raise()/raise_()/g' $gen_file
+ done
+ popd