# Maintainer: Marcel O'Neil # Contributor: Andy Weidenbaum # Contributor: RunningDroid # Contributor: Sebastian Lindqvist # Contributor: Dan Beste pkgname='electron-cash-git' pkgdesc='Lightweight Bitcoin Cash wallet' pkgver=4.0.0.r5.g5ebf46a60 pkgrel=1 url='http://www.electroncash.org/' arch=('any') license=('MIT') makedepends=( 'git' 'protobuf' 'python-requests' 'python-setuptools' 'python-tox' ) depends=( 'hicolor-icon-theme' 'libsecp256k1' 'python' 'python-dnspython' 'python-ecdsa' 'python-jsonrpclib-pelix' 'python-protobuf' 'python-pyaes' 'python-pyqt5' 'python-pysocks' 'python-qrcode' 'python-requests' 'python-six' 'qt5-base' ) optdepends=( 'python-btchip: Ledger hardware wallet support' 'python-hidapi: Digital Bitbox hardware wallet support' 'python-matplotlib: plot transaction history in graphical mode' 'python-pycryptodomex: use PyCryptodome AES implementation instead of pyaes' 'python-qdarkstyle: optional dark theme in graphical mode' 'python-rpyc: send commands to Electrum Python console from an external script' 'zbar: QR code reading support' ) provides=("${pkgname/-git/}") conflicts=("${pkgname/-git/}") source=("${pkgname}::git+https://github.com/Electron-Cash/Electron-Cash.git") sha256sums=('SKIP') pkgver() { cd "${pkgname}" git describe --long --tags \ | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${pkgname}" # Compile the icons file for Qt: pyrcc5 icons.qrc -o gui/qt/icons_rc.py # Compile the protobuf description file: protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto # Create translations (optional): python contrib/make_locale # Build python setup.py build } check() { cd "${pkgname}" python setup.py sdist --format=gztar --disable-secp tox -e py37 --installpkg "dist/Electron Cash-${pkgver/.r*}.tar.gz" } package() { cd "${pkgname}" python setup.py install --root="${pkgdir}" --optimize=1 } # vim: ts=2 sw=2 et: