blob: 9370eaadc026500061c0913ab7de699ed002ccda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
# Contributor: lukpod <lukpod9@ya.ru>
pkgname=electrum-ltc-git
pkgver=4.3.0a0.git20220622.a49eff6
pkgrel=1
pkgdesc='Litecoin thin client'
arch=(any)
url=https://electrum-ltc.org/
license=(MIT)
depends=('hicolor-icon-theme'
'libsecp256k1'
'python'
'python-dnspython'
'python-protobuf'
'python-pyqt5'
'python-qdarkstyle'
'python-qrcode'
'python-requests'
'python-six'
'python-websocket-client'
'python-aiohttp-socks'
'python-certifi'
'python-aiorpcx'
'python-aiohttp'
'python-scrypt'
'qt5-base'
'python-cryptography'
'python-bitstring'
'python-attrs')
checkdepends=('python-tox')
makedepends=('gettext'
'git'
'protobuf'
'python-pycurl'
'python-setuptools')
optdepends=('desktop-file-utils: update desktop icon'
'gtk-update-icon-cache: update desktop icon'
'python-amodem: air-gapped transaction signing over audio modem'
'python-btchip: Ledger hardware wallet support'
'python-ckcc-protocol: Coldcard wallet hardware support'
'python-hidapi: Digital Bitbox hardware wallet support'
'python-keepkey: KeepKey hardware wallet support'
'python-matplotlib: plot transaction history in graphical mode'
'python-rpyc: send commands to Electrum Python console from an external script'
'python-safet: Archos Safe-T hardware wallet support'
'python-trezor: Trezor hardware wallet support'
'python-bitbox02: BitBox wallet hardware support'
'python-cbor: Blockstream Jade hardware wallet communication'
'python-pyserial: Blockstream Jade hardware wallet serial port extension'
'xdg-utils: update desktop icon'
'zbar: QR code reading support')
source=(git+https://github.com/pooler/electrum-ltc)
sha256sums=('SKIP')
provides=('electrum-ltc')
conflicts=('electrum-ltc')
pkgver() {
cd ${pkgname%-git}
printf %s.git%s "$(grep -om1 "'.*'" electrum_ltc/version.py | tr -d "'" )" \
"$(git log -1 --format=%ad.%h --date=format:%Y%m%d --abbrev=7)"
}
build() {
cd ${pkgname%-git}
protoc --proto_path=electrum_ltc --python_out=electrum_ltc electrum_ltc/paymentrequest.proto
contrib/pull_locale
./setup.py build
}
check() {
cd ${pkgname%-git}
#_pyver="$(pacman -Q python | awk '{print $2}' | awk -F. '{print $1 $2}')"
_pyver="$(python -c \
'import platform; print("%s%s" % platform.python_version_tuple()[0:2])')"
echo 'Testing...'
tox -e "py$_pyver"
}
package() {
cd ${pkgname%-git}
./setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 AUTHORS README.md RELEASE-NOTES -t "$pkgdir"/usr/share/doc/$pkgname
install -Dm644 LICENCE -t "$pkgdir"/usr/share/licenses/$pkgname
}
|