diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 91 |
1 files changed, 64 insertions, 27 deletions
@@ -1,49 +1,86 @@ +# Maintainer: Luis Aranguren <pizzaman@hotmail.com> +# Contributor: lukpod <lukpod9@ya.ru> + pkgname=electrum-ltc-git -pkgver=3.3.5.1.git20190514.7db15b9 +pkgver=3.3.8.1.git20190811.cd41861 pkgrel=1 pkgdesc='Litecoin thin client' arch=(any) url=https://electrum-ltc.org/ license=(MIT) -depends=(desktop-file-utils - libsecp256k1 - python-aiohttp - python-aiohttp-socks - python-aiorpcx - python-btchip - python-certifi - python-dnspython - python-ecdsa - python-jsonrpclib-pelix - python-matplotlib - python-protobuf - python-pyaes - python-pycryptodomex - python-pyqt5 - python-qrcode - python-scrypt - python-websocket-client - zbar) -makedepends=(git python-requests) +depends=('hicolor-icon-theme' + 'libsecp256k1' + 'python' + 'python-dnspython' + 'python-ecdsa' + 'python-jsonrpclib-pelix' + 'python-protobuf' + 'python-pyaes' + 'python-pyqt5' + 'python-pysocks' + 'python-qdarkstyle' + 'python-qrcode' + 'python-requests' + 'python-six' + 'python-websocket-client' + 'python-aiohttp-socks' + 'python-certifi' + 'python-aiorpcx-git' + 'python-aiohttp' + 'python-scrypt' + 'qt5-base') +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-pycryptodomex: use PyCryptodome AES implementation instead of pyaes' + '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' + '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 electrum-ltc + cd ${pkgname%-git} printf %s.git%s "$(grep -om1 '[0-9.]*' electrum_ltc/version.py)" \ "$(git log -1 --format=%ad.%h --date=format:%Y%m%d --abbrev=7)" } build() { - cd electrum-ltc + cd ${pkgname%-git} protoc --proto_path=electrum_ltc --python_out=electrum_ltc electrum_ltc/paymentrequest.proto - contrib/make_locale + 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 electrum-ltc - ./setup.py install -O1 --root="$pkgdir" --skip-build - install -Dm644 AUTHORS README.rst RELEASE-NOTES -t "$pkgdir"/usr/share/doc/electrum-ltc + cd ${pkgname%-git} + ./setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 AUTHORS README.rst RELEASE-NOTES -t "$pkgdir"/usr/share/doc/$pkgname install -Dm644 LICENCE -t "$pkgdir"/usr/share/licenses/$pkgname } |