summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfec9e1b4b8c2c2c7d3cce4f45ac7dcad6d312c3 (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
pkgname='python-ledger-bitcoin'
_name='ledger_bitcoin'
pkgver='0.2.2'
pkgrel=1
pkgdesc="Client for Ledger Nano Bitcoin application"
url="https://github.com/LedgerHQ/app-bitcoin-new"
depends=('python' 'python-bip32' 'python-coincurve' 'python-ledgercomm')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
license=('APACHE')
arch=('any')
source=(
    "https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
)
b2sums=(
    '030cd888458fe9c80e9eb31b2c1489eb6f7d1aa7df2f0d4a4d822db94fdc932ade47c429fed6865b70015ba4b2ef3e864bee4b252cbaac801b11126dde2b5ad6'
)

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}