# Maintainer: Christian Rebischke # Co-Maintainer: Santiago Torres-Arias # Contributor: Timothy Redaelli # Contributor: Andy Weidenbaum pkgname=electrum pkgver=4.3.2 pkgrel=2 pkgdesc="Lightweight Bitcoin wallet" arch=('any') makedepends=('python-setuptools') depends=('python-pyaes' 'python-ecdsa' 'python-pbkdf2' 'python-requests' 'python-qrcode' 'python-protobuf' 'python-dnspython' 'python-jsonrpclib-pelix' 'python-pysocks' 'python-pyqt5' 'python-pycryptodomex' 'python-websocket-client' 'python-certifi' 'python-aiorpcx' 'python-aiohttp' 'python-aiohttp-socks' 'libsecp256k1' 'python-bitstring') optdepends=('python-btchip: BTChip hardware wallet support' 'python-hidapi: Digital Bitbox hardware wallet support' 'python-matplotlib: plot transaction history in graphical mode' 'zbar: QR code reading support' 'python-rpyc: send commands to Electrum Python console from an external script' 'python-qdarkstyle: optional dark theme in graphical mode' 'python-pycryptodomex: use PyCryptodome AES implementation instead of pyaes' ) url="https://electrum.org" license=('MIT') source=("https://download.electrum.org/${pkgver}/${pkgname^}-${pkgver}.tar.gz" "${pkgname^}-${pkgver}.tar.gz.asc::https://download.electrum.org/${pkgver}/${pkgname^}-${pkgver}.tar.gz.ThomasV.asc") sha512sums=('6221b21c0da26008b81ba2787bb21f8cb298d11cb04b2c99ce60c68fbafdf213b7cec343d96d7a1aa9de6a605067a643479a33246a1ea4ba305c75022d5834cc' 'SKIP') validpgpkeys=('6694D8DE7BE8EE5631BED9502BD5824B7F9470E6') prepare() { cd "${pkgname^}-${pkgver}" } build() { cd "${pkgname^}-${pkgver}" python setup.py build } package() { cd "${pkgname^}-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 install -D -m644 LICENCE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE }