blob: 025e17de937ea32c7a8d3654a5629f310342274b (
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
59
60
61
|
# Maintainer: taotieren <admin@taotieren.com>
pkgbase=nrf-command-line-tools-bin
pkgname=(nrf-command-line-tools python-nrf-command-line-tools)
_pkgname=${pkgbase%-bin}
pkgver=10.24.2
pkgrel=0
arch=('x86_64' 'aarch64')
makedepends=(python-wheel
python-setuptools-scm
python-pip
python-poetry
python-validate-pyproject)
options=(!strip)
replaces=()
pkgdesc="The nRF Command Line Tools is used for development, programming and debugging of Nordic Semiconductor's nRF51, nRF52, nRF53 and nRF91 Series devices."
license=('Commercial')
url="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"
_source="https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/${_pkgname}/sw/versions-10-x-x/${pkgver//./-}/${_pkgname}-${pkgver}_linux"
source_x86_64=("${_pkgname}-${pkgver}_linux-amd64.tar.gz::$_source-amd64.tar.gz")
source_aarch64=("${_pkgname}-${pkgver}_linux-arm64.tar.gz::$_source-arm64.tar.gz")
sha256sums_x86_64=('9d65b0d80fccb567668fa41585c9261947b1740f52eba8d3a368cf6f8fd7b793')
sha256sums_aarch64=('568d1b7bac35fbcaa0320ef50dfc4fa94d672441636284ab532a05d74bc603d4')
optdepends=("nrf-udev: udev rules for nRF (Nordic Semiconductor) development kits"
"pc-nrfconnect-programmer: Programmer app for nRF Connect for Desktop")
build () {
cd "${srcdir}"/${_pkgname}/python
python -m build --wheel --no-isolation
}
package_nrf-command-line-tools() {
depends=(jlink-software-and-documentation)
provides=(nrfjprog
mergehex)
conflicts=(nrfjprog
mergehex)
install -Dm0755 "${srcdir}"/${_pkgname}/bin/* -t ${pkgdir}/usr/bin
install -Dm0644 "${srcdir}"/${_pkgname}/include/*.h -t ${pkgdir}/usr/include
install -Dm0644 "${srcdir}"/${_pkgname}/lib/*.so -t ${pkgdir}/usr/lib
install -Dm0644 "${srcdir}"/${_pkgname}/LICENSE* -t ${pkgdir}/usr/share/licenses/${pkgname}
cp -rv "${srcdir}"/${_pkgname}/share/* ${pkgdir}/usr/share
}
package_python-nrf-command-line-tools() {
pkgdesc+=" (Python)"
depends=(jlink-software-and-documentation
python
python-future
python-tomli-w)
provides=(python-pynrfjprog)
conflicts=(python-pynrfjprog)
cd "${srcdir}"/${_pkgname}/python
python -m installer --destdir="$pkgdir" dist/*-${pkgver}*.whl
install -Dm0644 "${srcdir}"/${_pkgname}/LICENSE* -t ${pkgdir}/usr/share/licenses/${pkgname}
}
|