blob: 3efa61170b0c674c73b866400d64d1b72d313d43 (
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
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-blockchain
_pkgname=blockchain
pkgver=1.3.3
pkgrel=0
pkgdesc="Blockchain API library (v1)"
url="https://github.com/blockchain/api-v1-client-python"
arch="noarch"
license="MIT"
makedepends="python2-dev py-setuptools python3-dev"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
_py python2
replaces="$pkgname"
}
_py3() {
_py python3
}
md5sums="dc9cf8a7f603f35f81caa25ee0b3de38 blockchain-1.3.3.tar.gz"
sha256sums="819b84dde3744d7d057c30f8ba3330fa3906cbf38d4b5ecde9d440bbbcde60f2 blockchain-1.3.3.tar.gz"
sha512sums="d5a49a7511656711adb6f4e79a82116caa8dc83ba50a66b6855100cbde3faa37297f20f3209245849df99fc8114c45c20a2f4b456d725181bca4f21e7ae3c675 blockchain-1.3.3.tar.gz"
|