summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Kluger2017-05-26 15:57:08 -0400
committerAndy Kluger2017-05-26 15:57:08 -0400
commit29aa3ebee9697a5c17968aa4362485dda93c5c99 (patch)
tree642a6a3722b8924877de23dfb77ad69cd91cb63e
downloadaur-29aa3ebee9697a5c17968aa4362485dda93c5c99.tar.gz
first pass at an electrum-dash pkgbuild. not sure if upstream trezor python lib will work properly.
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD60
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3f70046d090
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = electrum-dash
+ pkgdesc = Lightweight Bitcoin wallet, fork for DASH
+ pkgver = 2.6.4
+ pkgrel = 1
+ url = https://electrum-dash.org
+ arch = any
+ license = MIT
+ makedepends = python2-pyqt4
+ depends = python2-slowaes
+ depends = python2-ecdsa
+ depends = python2-pbkdf2
+ depends = python2-requests
+ depends = python2-qrcode
+ depends = python2-protobuf
+ depends = python2-dnspython
+ depends = python2-jsonrpclib
+ depends = python2-trezor
+ depends = python2-x11_hash
+ depends = python2-pyqt4
+ optdepends = python2-btchip: BTChip hardware wallet support
+ optdepends = python2-matplotlib: plot transaction history in graphical mode
+ optdepends = zbar: QR code reading support
+ source = electrum-dash-2.6.4.tar.gz::https://electrum-dash.org/download/2.6.4/Electrum-DASH-2.6.4.tar.gz
+ sha256sums = f8e1c9188e425ea4740125ba931b2ce034a97eaa3b37e4b589a22db8486a231b
+
+pkgname = electrum-dash
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5a1911b3bd8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Andy Kluger <AndyKluger@gmail.com>
+# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
+# Contributor: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=electrum-dash
+_pkgname=Electrum-DASH
+pkgver=2.6.4
+pkgrel=1
+pkgdesc="Lightweight Bitcoin wallet, fork for DASH"
+arch=('any')
+depends=(
+ 'python2-slowaes'
+ 'python2-ecdsa'
+ 'python2-pbkdf2'
+ 'python2-requests'
+ 'python2-qrcode'
+ 'python2-protobuf'
+ 'python2-dnspython'
+ 'python2-jsonrpclib'
+ 'python2-trezor'
+ 'python2-x11_hash'
+ 'python2-pyqt4'
+ # 'python2-pysocks'
+ # 'python2-pycryptodomex'
+)
+makedepends=(
+ 'python2-pyqt4'
+ # 'gettext'
+ # 'python2-setuptools'
+ # 'desktop-file-utils'
+)
+optdepends=(
+ 'python2-btchip: BTChip hardware wallet support'
+ 'python2-matplotlib: plot transaction history in graphical mode'
+ 'zbar: QR code reading support'
+)
+url="https://electrum-dash.org"
+license=(MIT)
+source=("${pkgname}-${pkgver}.tar.gz::https://electrum-dash.org/download/${pkgver}/Electrum-DASH-${pkgver}.tar.gz")
+sha256sums=('f8e1c9188e425ea4740125ba931b2ce034a97eaa3b37e4b589a22db8486a231b')
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+
+ find . -type f -exec sed -i 's#/usr/bin/python$#/usr/bin/python2#g' {} +
+ find . -type f -exec sed -i 's#/usr/bin/env python$#/usr/bin/env python2#g' {} +
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+
+ pyrcc4 icons.qrc -o gui/qt/icons_rc.py
+ python2 setup.py build
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}