Merge pull request #5189 from clehner/electrum

New packages: Electrum and dependencies
This commit is contained in:
Toyam Cox 2016-12-05 21:59:34 -05:00 committed by GitHub
commit e83fe7171a
9 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Some optional packages must be installed for additional functionality:
- python-matplotlib: plot transaction history in graphical mode

25
srcpkgs/electrum/template Normal file
View File

@ -0,0 +1,25 @@
# Template file for 'python-electrum'
pkgname=electrum
version=2.7.12
revision=1
noarch=yes
wrksrc="Electrum-${version}"
build_style=python2-module
pycompile_module="electrum"
hostmakedepends="python-setuptools"
depends="python-slowaes python-ecdsa python-pbkdf2 python-requests python-qrcode python-protobuf python-dnspython python-jsonrpclib"
# Missing optional dependencies:
# python-zbar - QR Code scanning
# python-btchip - BTChip hardware wallet support
# python-trezor - TREZOR hardware wallet support
# python-keepkey - KeepKey hardware wallet support
short_desc="Lightweight Bitcoin client"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="https://electrum.org/"
license="MIT"
distfiles="https://download.electrum.org/${version}/Electrum-${version}.tar.gz"
checksum=3644274231326cc6b13a25703ebe6ec22bbbce7832a86d75abc745040475ad6f
post_install() {
vlicense LICENCE LICENSE
}

3
srcpkgs/electrum/update Normal file
View File

@ -0,0 +1,3 @@
site="https://download.electrum.org"
pattern='<a href="\K[\d.]+(?=/">)'

View File

@ -0,0 +1,16 @@
# Template file for 'python-jsonrpclib'
pkgname=python-jsonrpclib
version=0.1.7
revision=1
noarch=yes
wrksrc="jsonrpclib-${version}"
build_style=python2-module
pycompile_module="jsonrpclib"
hostmakedepends="python-setuptools"
depends="python"
short_desc="Python implementation of the JSON-RPC v2.0 specification"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="http://github.com/joshmarshall/jsonrpclib/"
license="Apache-2.0"
distfiles="${PYPI_SITE}/j/jsonrpclib/jsonrpclib-${version}.tar.gz"
checksum=7f50239d53b5e95b94455d5e1adae70592b5b71f0e960d3bbbfbb125788e6f0b

View File

@ -0,0 +1,19 @@
# Template file for 'python-pbkdf2'
pkgname=python-pbkdf2
version=1.3
revision=1
noarch=yes
wrksrc="pbkdf2-${version}"
build_style=python2-module
pycompile_module="pbkdf2"
hostmakedepends="python-setuptools"
short_desc="Password-based key derivation function PBKDF2 (Python2)"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="http://www.dlitz.net/software/python-pbkdf2/"
license="MIT"
distfiles="${PYPI_SITE}/p/pbkdf2/pbkdf2-${version}.tar.gz"
checksum=ac6397369f128212c43064a2b4878038dab78dab41875364554aaf2a684e6979
do_install() {
vlicense README.txt
}

View File

@ -0,0 +1,26 @@
# Template file for 'python-protobuf'
pkgname=python-protobuf
version=3.1.0.post1
revision=1
noarch=yes
wrksrc="protobuf-${version}"
build_style=python2-module
pycompile_module="protobuf"
hostmakedepends="python-setuptools"
depends="python"
short_desc="Python bindings for Google Protocol Buffers"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="https://developers.google.com/protocol-buffers/"
license="BSD"
distfiles="
${PYPI_SITE}/p/protobuf/protobuf-${version}.tar.gz
https://raw.githubusercontent.com/google/protobuf/master/LICENSE"
checksum="
1a2e989ff8820ef2eaf56b07cd40ad764ec505a0f0b52b69f7fa9e0d5afbddb7
af67c58de2e18677a0b8cb5fffbe2232aabb8eb2930e8cd684769cef3d74a262"
skip_extraction=LICENSE
post_install() {
vlicense $XBPS_SRCDISTDIR/$pkgname-$version/LICENSE
chmod -R o+r $DESTDIR/usr/lib
}

View File

@ -0,0 +1,4 @@
Some optional packages must be installed for additional functionality:
- python-Pillow: Image generation support

View File

@ -0,0 +1,20 @@
# Template file for 'python-qrcode'
pkgname=python-qrcode
version=5.3
revision=1
noarch=yes
wrksrc="qrcode-${version}"
build_style=python2-module
pycompile_module="qrcode"
hostmakedepends="python-setuptools"
depends="python-six"
short_desc="QR Code image generator (Python2)"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="https://github.com/lincolnloop/python-qrcode"
license="MIT"
distfiles="${PYPI_SITE}/q/qrcode/qrcode-${version}.tar.gz"
checksum=4115ccee832620df16b659d4653568331015c718a754855caf5930805d76924e
do_install() {
vlicense LICENSE
}

View File

@ -0,0 +1,16 @@
# Template file for 'python-slowaes'
pkgname=python-slowaes
version=0.1a1
revision=1
noarch=yes
wrksrc="slowaes-${version}"
build_style=python2-module
pycompile_module="slowaes"
hostmakedepends="python-setuptools"
depends="python"
short_desc="Implementation of AES in Python"
maintainer="Charles E. Lehner <cel@celehner.com>"
homepage="http://code.google.com/p/slowaes/"
license="Apache-2.0"
distfiles="${PYPI_SITE}/s/slowaes/slowaes-${version}.tar.gz"
checksum=83658ae54cc116b96f7fdb12fdd0efac3a4e8c7c7064e3fac3f4a881aa54bf09