blob: c2757d3f92109ae1bf8b4f59ee599dd3b37c7188 (
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
|
pkgname=electrum-ltc-git
pkgver=3.0.4.git20180107.424072e
pkgrel=1
pkgdesc="Lightweight Litecoin client"
arch=(any)
url=https://electrum-ltc.org/
license=(MIT)
depends=(python-dnspython
python-ecdsa
python-jsonrpclib-pelix
python-matplotlib
python-pbkdf2
python-protobuf
python-pyaes
python-pycryptodomex
python-pyqt5
python-pysocks
python-qrcode
python-requests
python-scrypt
zbar)
makedepends=(gettext git)
source=(git+https://github.com/pooler/electrum-ltc.git)
sha256sums=(SKIP)
pkgver() {
cd electrum-ltc/
printf %s%s $(grep ELECTRUM_VERSION lib/version.py | cut -d\' -f2) \
$(git log -1 --format=.git%cd.%h --date=short --abbrev=7 | tr -d -)
}
build() {
cd electrum-ltc/
pyrcc5 icons.qrc >gui/qt/icons_rc.py
protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto
contrib/make_locale
./setup.py build
}
package() {
cd electrum-ltc/
./setup.py install -O1 --root=$pkgdir/
mkdir -p $pkgdir/usr/share/doc/electrum-ltc/
cp AUTHORS README.rst RELEASE-NOTES electrum-ltc.conf.sample $pkgdir/usr/share/doc/electrum-ltc/
mkdir -p $pkgdir/usr/share/licenses/$pkgname/
cp LICENCE $pkgdir/usr/share/licenses/$pkgname/
}
|