void-packages/srcpkgs/electrum/template

30 lines
1.0 KiB
Bash

# Template file for 'electrum'
pkgname=electrum
version=3.2.3
revision=1
noarch=yes
wrksrc="Electrum-${version}"
build_style=python3-module
pycompile_module="electrum electrum_gui electrum_plugins"
hostmakedepends="python3-setuptools"
depends="python3-PyQt5 python3-dnspython python3-ecdsa python3-jsonrpclib
python3-pbkdf2 python3-protobuf python3-pyaes python3-pycryptodome python3-pysocks
python3-qrcode python3-requests"
# Missing optional dependencies:
# btchip - BTChip hardware wallet support
# trezor - TREZOR hardware wallet support
# keepkey - KeepKey hardware wallet support
short_desc="Lightweight Bitcoin wallet"
maintainer="Charles E. Lehner <cel@celehner.com>"
license="MIT"
homepage="https://electrum.org/"
distfiles="https://download.electrum.org/${version}/Electrum-${version}.tar.gz"
checksum=41c32a38448219882c576c608a5240db02264b408d1f8b374f00308019e15108
post_install() {
sed -i -e 's|electrum %u|electrum|' \
-e 's|testnet %u|testnet|' \
${DESTDIR}/usr/share/applications/electrum.desktop
vlicense LICENCE
}