blob: 11f2ae3ea60a2082b0f3cb339fe910d7a8cc0a34 (
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
|
# Maintainer: Sigurd Hellesvik <sigurd@hellesvik.eu>
_pkgname=nrf_regtool
pkgname=python-${_pkgname}
pkgver=8.1.2
pkgrel=1
pkgdesc='Generate memory-mapped binary files of peripheral register content, based on System View Description (SVD) files and configuration files.'
arch=('x86_64')
url="https://pypi.org/project/${_pkgname}/"
license=(Apache-2.0)
depends=('python' 'python-click' 'python-intelhex' 'python-tomli' 'python-svada' 'python-devicetree')
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/n/nrf-regtool/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('ec7e9d49a172e64bec77470758f4110666b0e40e9744940e899bd0c43fd74531')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|