blob: f80dc63d4c51fccfa99ee39451c2110fdd2f37d9 (
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
|
# Maintainer: bitcoinlizard <bitcoinlizard@fastmail.com>
pkgname=python-embit-git
pkgver=r101.249bd2a
pkgrel=1
pkgdesc="A minimal bitcoin library for MicroPython and Python3 with a focus on embedded systems."
arch=('any')
url="https://github.com/diybitcoinhardware/embit"
license=('MIT')
makedepends=('python-setuptools')
depends=('python')
optdepends=('libsecp256k1')
provides=('python-embit')
conficts=('python-embit')
source=("git+https://github.com/diybitcoinhardware/embit")
sha256sums=('SKIP')
pkgver() {
cd "embit"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "embit"
}
build() {
cd "embit"
python setup.py build
}
package() {
cd "embit"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
# Install license since the package doesn't include it
install -Dm 644 "$srcdir/embit/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|