diff options
author | Dan Beste | 2017-11-07 19:29:28 -0600 |
---|---|---|
committer | Dan Beste | 2017-11-07 19:29:28 -0600 |
commit | b9cc5ece35819da8f0e4ea53f5c126ffc1a7e8bd (patch) | |
tree | 4183423d3a01fceb698d8edce765b120a47d52da | |
parent | 13e867b5c392f051195871449f68f1a99ad4b375 (diff) | |
download | aur-b9cc5ece35819da8f0e4ea53f5c126ffc1a7e8bd.tar.gz |
v2.9.3.r54.g1faa1f43
* PKGBUILD: Update dependencies
* PKGBUILD: Update build() and package() functions
* PKGBUILD: Add check() function
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 21 insertions, 21 deletions
@@ -1,7 +1,7 @@ pkgbase = electron-cash-git pkgdesc = Lightweight Bitcoin Cash wallet - pkgver = 2.9.3.r49.gf0de53e9 - pkgrel = 1 + pkgver = 2.9.3.r54.g1faa1f43 + pkgrel = 2 url = http://www.electroncash.org/ install = electron-cash-git.install arch = any @@ -10,11 +10,12 @@ pkgbase = electron-cash-git makedepends = protobuf makedepends = python2-pycurl makedepends = python2-setuptools + makedepends = python2-tox depends = hicolor-icon-theme depends = python2 depends = python2-dnspython depends = python2-ecdsa - depends = python2-jsonrpclib + depends = python2-jsonrpclib-pelix depends = python2-pbkdf2 depends = python2-protobuf depends = python2-pyaes @@ -10,8 +10,8 @@ pkgname=electron-cash-git pkgdesc="Lightweight Bitcoin Cash wallet" -pkgver=2.9.3.r49.gf0de53e9 -pkgrel=1 +pkgver=2.9.3.r54.g1faa1f43 +pkgrel=2 url='http://www.electroncash.org/' install="${pkgname}.install" arch=('any') @@ -21,13 +21,14 @@ makedepends=( 'protobuf' 'python2-pycurl' 'python2-setuptools' + 'python2-tox' ) depends=( 'hicolor-icon-theme' 'python2' 'python2-dnspython' 'python2-ecdsa' - 'python2-jsonrpclib' + 'python2-jsonrpclib-pelix' 'python2-pbkdf2' 'python2-protobuf' 'python2-pyaes' @@ -63,30 +64,28 @@ pkgver() { } build() { - cd ${pkgname/-git/} + cd "${pkgname/-git/}" - msg2 'Compiling icons...' + # Compile the icons file for Qt: python2-pyrcc5 icons.qrc -o gui/qt/icons_rc.py - - msg2 'Compiling protobuf description file...' + # Compile the protobuf description file: protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto - - msg2 'Creating translations...' + # Create translations (optional): python2 contrib/make_locale - - msg2 'Building...' + # Build python2 setup.py build } -package() { - cd ${pkgname/-git/} +check() { + cd "${pkgname/-git/}" + + tox +} - msg2 'Installing...' - python2 setup.py install --root="${pkgdir}" +package() { + cd "${pkgname/-git/}" - msg2 'Cleaning up pkgdir...' - find "${pkgdir}" -type d -name .git -exec rm -r '{}' + - find "${pkgdir}" -type f -name .gitignore -exec rm -r '{}' + + python2 setup.py install --root="${pkgdir}" --optimize=1 } # vim: ts=2 sw=2 et: |