summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcf2399b2604fb53a53a01503408262d7dd2c1a5 (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
# Maintainer:  Maximilian Weiss <$(echo "bWF4QG1heHdlaXNzLmlv" | base64 -d)>
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=python-btchip-git
pkgver=0.1.32
pkgrel=2
pkgdesc="Python library to communicate with BTChip dongle"
arch=('any')
depends=('python-hidapi' 'libusb-compat' 'libusb' 'libsystemd')
makedepends=('python-setuptools')
optdepends=('btchip-udev: access BTChip as non-root user')
url="https://github.com/LedgerHQ/btchip-python"
license=('Apache')
provides=('python-btchip-git' 'python-btchip')
conflicts=('python-btchip-git' 'python-btchip')
source=(git://github.com/LedgerHQ/btchip-python)
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/btchip-python/"
    git tag -l | sed 's/v//g' | sort | tail -n 1
}

build() {
  cd "$srcdir/btchip-python/"
  git checkout $(git tag -l | sed 's/v//g' | sort | tail -n 1) > /dev/null 2>&1
  python setup.py build
}

package() {
  cd "$srcdir/btchip-python/"
  python setup.py install --root="$pkgdir" --optimize=1
}