Nordic is in the process of replacing the nRF Command Line Tools with nRF Util.
nRF Util can be found here: https://aur.archlinux.org/packages/nrfutil
Git Clone URL: | https://aur.archlinux.org/nrf5x-command-line-tools.git (read-only, click to copy) |
---|---|
Package Base: | nrf5x-command-line-tools |
Description: | Tools for programming Nordic nRF51, nRF52, nRF53 and nRF91 Series devices |
Upstream URL: | https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools |
Keywords: | mergehex nordic nrfjprog pynrfjprog |
Licenses: | custom |
Conflicts: | python-pynrfjprog, python-pynrfjprog-git |
Provides: | mergehex, nrfjprog, python-pynrfjprog |
Submitter: | Limoto |
Maintainer: | pinsl (casparfriedrich) |
Last Packager: | pinsl |
Votes: | 19 |
Popularity: | 0.000668 |
First Submitted: | 2016-02-13 22:31 (UTC) |
Last Updated: | 2025-01-02 14:39 (UTC) |
Nordic is in the process of replacing the nRF Command Line Tools with nRF Util.
nRF Util can be found here: https://aur.archlinux.org/packages/nrfutil
No, I don't think it is in the AUR. I will look into packaging it once I get back to work after the christmas holidays.
thanks
note that the nRF Command Line Tools are being replaced with nRF Util
pkgrel should be set to 1
thanks, I added it
The build failed when I didn't have python-setuptools
installed. I think it should be added as a build dependency.
New Command line tool source: https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-18-1/nrf-command-line-tools-10.18.1_linux-amd64.tar.gz source_x86_64="https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-${pkgver%..}-x-x/${pkgver//./-}/${_pkgname}-${pkgver}_linux-amd64.tar.gz"
Ah, damn! Sorry for the delay. Work is quite intense atm. Looks good to me. Applications are there.
I think so.
I am using the following patch now and it seems to work fine. Could you maybe test it?
From 3db36c1cfa642702c1aa4723eed698b8d74e646b Mon Sep 17 00:00:00 2001
From: pinsl <johannes.neyer@gmail.com>
Date: Mon, 30 May 2022 14:14:11 +0200
Subject: [PATCH] Install pynrfjprog
---
.SRCINFO | 6 +++++-
PKGBUILD | 30 +++++++++++++++++++++---------
2 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 37a1837..30ea47e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,17 @@
pkgbase = nrf5x-command-line-tools
pkgdesc = Tools for programming Nordic nRF51, nRF52, nRF53 and nRF91 Series devices
pkgver = 10.16.0
- pkgrel = 0
+ pkgrel = 1
url = https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools
arch = x86_64
license = custom
+ makedepends = python-setuptools
depends = jlink-software-and-documentation
provides = nrfjprog
provides = mergehex
+ provides = python-pynrfjprog
+ conflicts = python-pynrfjprog
+ conflicts = python-pynrfjprog-git
source_x86_64 = https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-16-0/nrf-command-line-tools-10.16.0_Linux-amd64.tar.gz
sha256sums_x86_64 = 0e036afa51c83de7824ef75d34e165ed55efc486697b8ff105639644bce988e5
diff --git a/PKGBUILD b/PKGBUILD
index f5093e2..c52d2d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,26 +8,38 @@
pkgname=nrf5x-command-line-tools
_pkgname=nrf-command-line-tools
pkgver=10.16.0
-pkgrel=0
+pkgrel=1
pkgdesc="Tools for programming Nordic nRF51, nRF52, nRF53 and nRF91 Series devices"
arch=('x86_64')
url="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools"
license=('custom')
depends=('jlink-software-and-documentation')
-provides=('nrfjprog' 'mergehex')
+makedepends=('python-setuptools')
+provides=('nrfjprog' 'mergehex' 'python-pynrfjprog')
+conflicts=('python-pynrfjprog' 'python-pynrfjprog-git')
options=()
source_x86_64=("https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/${pkgver//./-}/${_pkgname}-${pkgver}_Linux-amd64.tar.gz")
sha256sums_x86_64=('0e036afa51c83de7824ef75d34e165ed55efc486697b8ff105639644bce988e5')
+build() {
+ cd ${_pkgname}/python
+ python setup.py build
+}
+
package() {
- cd ${srcdir}
+ cd "${srcdir}"/${_pkgname}/python
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+ cd "${srcdir}"
+
+ install -Dm644 ${_pkgname}/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
- mkdir -p "${pkgdir}/opt"
- cp -r "${_pkgname}" "${pkgdir}/opt/${pkgname}"
+ rm -r ${_pkgname}/LICENSE* ${_pkgname}/python
- mkdir -p "${pkgdir}/usr/bin"
- ln -s "/opt/${pkgname}/bin/nrfjprog" "${pkgdir}/usr/bin"
- ln -s "/opt/${pkgname}/bin/mergehex" "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}"/opt
+ cp -r ${_pkgname} "${pkgdir}"/opt/${pkgname}
- install -D ${_pkgname}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ mkdir -p "${pkgdir}"/usr/bin
+ ln -s /opt/${pkgname}/bin/nrfjprog "${pkgdir}"/usr/bin
+ ln -s /opt/${pkgname}/bin/mergehex "${pkgdir}"/usr/bin
}
--
2.36.1
Pinned Comments
pinsl commented on 2025-01-09 13:15 (UTC) (edited on 2025-01-09 14:42 (UTC) by pinsl)
Nordic is in the process of replacing the nRF Command Line Tools with nRF Util.
nRF Util can be found here: https://aur.archlinux.org/packages/nrfutil