blob: d26f4675aed32e0099848bd340809fd2be2fb241 (
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
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=python2-bitcoinrpc-git
pkgver=20140418
pkgrel=1
pkgdesc="Python interface to bitcoin's JSON-RPC API"
arch=('any')
depends=('python2')
makedepends=('git' 'python2-setuptools')
url="https://github.com/jgarzik/python-bitcoinrpc"
license=('Apache')
source=(${pkgname%-git}::git+https://github.com/jgarzik/python-bitcoinrpc)
sha256sums=('SKIP')
provides=('python2-bitcoinrpc')
conflicts=('python2-bitcoinrpc')
pkgver() {
cd ${pkgname%-git}
git log -1 --format="%cd" --date=short | sed "s|-||g"
}
prepare() {
cd ${pkgname%-git}
msg 'Fixing Python version...'
find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/python#/usr/bin/python2#g'
find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/env python#/usr/bin/env python2#g'
}
build() {
cd ${pkgname%-git}
msg 'Building...'
python2 setup.py build
}
package() {
cd ${pkgname%-git}
msg 'Installing...'
python2 setup.py install --root="$pkgdir" --optimize=1
}
|