blob: c15c91fdd6c130c3540b572797e5f88cba409f61 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: wuxxin <wuxxin@gmail.com>
# Based on solo-python; original contributors:
# Contributor: mutantmonkey <aur@mutantmonkey.mx>
pkgname=solo1
_pkgname=solo1-cli
pkgver=0.1.1
pkgrel=5
pkgdesc="Python tool and library for SoloKeys Solo 1"
arch=('any')
url="https://github.com/solokeys/${_pkgname}"
license=('Apache' 'MIT')
depends=(
'python'
'python-click>=7.1'
'python-cryptography'
'python-ecdsa'
'python-fido2'
'python-intelhex'
'python-pyserial'
'python-pyusb'
'python-requests'
)
makedepends=(
'python-pip'
'python-flit'
)
replaces=('solo-python')
conflicts=('solo-python')
provides=('solo-python')
source=(
"${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
'169.patch'
)
sha256sums=(
'377f0c244ee0efc741f18b3370cc0e5dcaff852db90102eeb258201128643c84'
'SKIP'
)
prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}"
# patch api change in python-fido2 > 0.9
# https://github.com/solokeys/solo1-cli/pull/169
patch -Np1 -i "${srcdir}/169.patch"
}
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m flit build --format wheel
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
install -Dm 644 LICENSE-MIT \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
pip install -I --no-warn-script-location --isolated --no-deps --compile \
--root="${pkgdir}" dist/${pkgname/-/_}-${pkgver}-py3-none-any.whl
}
|