blob: 6175ce019894cbb4222076c723d7adaf7f11a9e8 (
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
|
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
pkgname=snagboot
pkgver=2.0
pkgrel=1
pkgdesc='Generic recovery and reflashing tool for embedded platforms'
arch=(any)
url='https://github.com/bootlin/snagboot'
license=('GPL2')
depends=('dtc>=1.7.0' # for pylibfdt
'python>=3.8'
'python-crccheck>=1.3.0'
'python-hid>=1.0.4' # pulls the required libhidapi
'python-kivy>=2.3.0'
'python-pyserial>=3.5'
'python-pyusb>=1.2.1'
'python-six>=1.16.0'
'python-tftpy>=0.8.2'
'python-xmodem>=0.4.6'
'python-yaml>=6.0'
'swig>=4.1.1')
makedepends=('python-build'
'python-installer'
'python-setuptools>=61.0'
'python-wheel')
install=$pkgname.install
source=("$url/archive/v$pkgver.tar.gz"
$pkgname.sysusers)
b2sums=('b9351ada40812b2ed3b16ba0bc256e1d32977bd9ca16aa23a7a5bc6f4f1f65c48d9587c74257a07796d38a9049ffcfdb2ae9b3448cf0eedb7c269af2c91e2d8b'
'f48705e2a98ec318e26a4a1f01bafabbd8ab74622c7209be9cbae34bb0ccc999d6581b0fa5c827ab7a8bd41d6f32d32c4a2ed642342279308362953018843138')
build() {
cd $pkgname-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dt "$pkgdir/etc/udev/rules.d" src/snagrecover/50-snagboot.rules
}
|