Package Details: nrf5x-command-line-tools 10.24.2-1

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.000145
First Submitted: 2016-02-13 22:31 (UTC)
Last Updated: 2025-01-02 14:39 (UTC)

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

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

casparfriedrich commented on 2022-06-02 08:27 (UTC)

Agreed. are

provides=(...) and conflicts=(...)

are enough to make sure we don't mess up with other python packages?

pinsl commented on 2022-05-30 11:06 (UTC) (edited on 2022-05-30 16:32 (UTC) by pinsl)

I don't know should we? Nordic apparently sees pynrfjprog as being part of their "nRF Command Line Tools".

casparfriedrich commented on 2022-05-30 09:37 (UTC)

We should have a python-pynrfjprog package for that, right?

pinsl commented on 2022-05-30 08:20 (UTC)

I'm thinking about also installing pynrfjprog as it's included in the downloaded archive. Anyone interested?

casparfriedrich commented on 2021-11-09 15:14 (UTC)

I can also co-maintain if you want.

casparfriedrich commented on 2021-11-09 15:12 (UTC)

Should fix the empty directory issue as well as the new archive structure

From 323b5be11034e71af0ff6d6580721ba78c0ae140 Mon Sep 17 00:00:00 2001
From: Caspar Friedrich <c.s.w.friedrich@gmail.com>
Date: Tue, 9 Nov 2021 15:28:22 +0100
Subject: [PATCH] v10.15.0

Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
---
 .SRCINFO   |  6 +++---
 .gitignore |  4 ++++
 PKGBUILD   | 22 +++++++++++-----------
 3 files changed, 18 insertions(+), 14 deletions(-)
 create mode 100644 .gitignore

diff --git a/.SRCINFO b/.SRCINFO
index 1e95531..e80e44d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = nrf5x-command-line-tools
    pkgdesc = Tools for programming Nordic nRF51, nRF52 and nRF91 MCU using J-Link
-   pkgver = 10.14.0
+   pkgver = 10.15.0
    pkgrel = 0
    url = https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools
    arch = x86_64
@@ -8,7 +8,7 @@ pkgbase = nrf5x-command-line-tools
    depends = jlink-software-and-documentation
    provides = nrfjprog
    conflicts = nrfjprog
-   source_x86_64 = https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-14-0/nRF-Command-Line-Tools_10_14_0_Linux64.zip
-   md5sums_x86_64 = 8a049bacc67519561b77e014b652d5df
+   source_x86_64 = https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-15-0/nrf-command-line-tools-10.15.0_amd.zip
+   sha256sums_x86_64 = e30b1c94508afe70ea3ad5eefb6b9914ee70b9dce17f14412bcbbb53d1aad9bd

 pkgname = nrf5x-command-line-tools
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..26c0e06
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg/
+/src/
+*.zip
+*.zst
diff --git a/PKGBUILD b/PKGBUILD
index 1f23567..a83651b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,8 @@
 # Corrected with a smile by CvR_XX <info@carlosvanrooijen.nl>

 pkgname=nrf5x-command-line-tools
-pkgver=10.14.0
+_pkgname=nrf-command-line-tools
+pkgver=10.15.0
 pkgrel=0
 pkgdesc="Tools for programming Nordic nRF51, nRF52 and nRF91 MCU using J-Link"
 arch=('x86_64')
@@ -13,20 +14,19 @@ depends=('jlink-software-and-documentation')
 provides=('nrfjprog')
 conflicts=('nrfjprog')
 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//./-}/nRF-Command-Line-Tools_${pkgver//./_}_Linux64.zip")
-md5sums_x86_64=('8a049bacc67519561b77e014b652d5df')
+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}_amd.zip")
+sha256sums_x86_64=('e30b1c94508afe70ea3ad5eefb6b9914ee70b9dce17f14412bcbbb53d1aad9bd')

 package() {
-    cd ${srcdir}/nRF-Command-Line-Tools_${pkgver//./_}_Linux64
-    tar zxf "nrf-command-line-tools-${pkgver}_Linux-amd64.tar.gz"
+    cd ${srcdir}
+    tar zxf "${_pkgname}-${pkgver}_Linux-amd64.tar.gz"

-    # Install nrfjprog and mergehex
-    install -dm755 "${pkgdir}/opt/nrfjprog" "${pkgdir}/opt/mergehex"
-    install -dm755 "${pkgdir}/usr/bin" "${pkgdir}/usr/share/licenses/${pkgname}"
-
-    cp -r --preserve=mode nrf-command-line-tools "${pkgdir}/opt/${pkgname}"
-    cp --preserve=mode nrf-command-line-tools/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    mkdir -p "${pkgdir}/opt"
+    cp -r "${_pkgname}" "${pkgdir}/opt/${pkgname}"

+    mkdir -p "${pkgdir}/usr/bin"
     ln -s "/opt/${pkgname}/bin/nrfjprog" "${pkgdir}/usr/bin"
     ln -s "/opt/${pkgname}/bin/mergehex" "${pkgdir}/usr/bin"
+
+    install -D ${_pkgname}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
-- 
2.33.1

dyno commented on 2021-11-09 05:17 (UTC) (edited on 2021-11-09 14:14 (UTC) by dyno)

updated and working for me with these changes

diff --git a/PKGBUILD b/PKGBUILD
index 1f23567..d5b81d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Corrected with a smile by CvR_XX <info@carlosvanrooijen.nl>

 pkgname=nrf5x-command-line-tools
-pkgver=10.14.0
+pkgver=10.15.0
 pkgrel=0
 pkgdesc="Tools for programming Nordic nRF51, nRF52 and nRF91 MCU using J-Link"
 arch=('x86_64')
@@ -13,11 +13,14 @@ depends=('jlink-software-and-documentation')
 provides=('nrfjprog')
 conflicts=('nrfjprog')
 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//./-}/nRF-Command-Line-Tools_${pkgver//./_}_Linux64.zip")
-md5sums_x86_64=('8a049bacc67519561b77e014b652d5df')
+
+_file_name="nrf-command-line-tools-${pkgver}_amd.zip"
+
+source_x86_64=("https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/${pkgver//./-}/${_file_name}")
+sha256sums_x86_64=('e30b1c94508afe70ea3ad5eefb6b9914ee70b9dce17f14412bcbbb53d1aad9bd')

 package() {
-    cd ${srcdir}/nRF-Command-Line-Tools_${pkgver//./_}_Linux64
+    cd ${srcdir}
     tar zxf "nrf-command-line-tools-${pkgver}_Linux-amd64.tar.gz"

     # Install nrfjprog and mergehex

pinsl commented on 2021-09-11 13:41 (UTC) (edited on 2021-09-11 15:02 (UTC) by pinsl)

Hmm it now creates two empty folders in /opt. Would you consider adding me as a co-maintainer?

pjvds commented on 2021-09-11 08:42 (UTC)

@pins thanks for the patch! Applied and it is working again.

pinsl commented on 2021-09-10 09:40 (UTC) (edited on 2021-09-10 12:27 (UTC) by pinsl)

The PKGBUILD does not work. It seems like the archives structure was changed significantly in 10.14.0.

I got it working with this patch:

diff --git a/PKGBUILD b/PKGBUILD
index c9a87f3..12dc823 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,18 +17,16 @@ source_x86_64=("https://www.nordicsemi.com/-/media/Software-and-other-downloads/
 md5sums_x86_64=('8a049bacc67519561b77e014b652d5df')

 package() {
-    cd ${srcdir}/nRF-Command-Line-Tools_${pkgver}_Linux64
-    tar zxf "nRF-Command-Line-Tools_${pkgver}_Linux-amd64.tar.gz"
-    tar xf "nRF-Command-Line-Tools_${pkgver}.tar"
+    cd ${srcdir}/nRF-Command-Line-Tools_${pkgver//./_}_Linux64
+    tar zxf "nrf-command-line-tools-${pkgver}_Linux-amd64.tar.gz"

     # Install nrfjprog and mergehex
-    install -dm755 "${pkgdir}/opt/nrfjprog" "${pkgdir}/opt/mergehex"
+    install -dm755 "${pkgdir}/opt/${pkgname}"
     install -dm755 "${pkgdir}/usr/bin" "${pkgdir}/usr/share/licenses/${pkgname}"

-    cp -r --preserve=mode nrfjprog/* "${pkgdir}/opt/nrfjprog"
-    cp --preserve=mode mergehex/* "${pkgdir}/opt/mergehex"
-    cp --preserve=mode nrfjprog/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    cp -r --preserve=mode nrf-command-line-tools/* "${pkgdir}/opt/${pkgname}"
+    cp --preserve=mode nrf-command-line-tools/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

-    ln -s "/opt/nrfjprog/nrfjprog" "${pkgdir}/usr/bin"
-    ln -s "/opt/mergehex/mergehex" "${pkgdir}/usr/bin"
+    ln -s "/opt/${pkgname}/bin/nrfjprog" "${pkgdir}/usr/bin"
+    ln -s "/opt/${pkgname}/bin/mergehex" "${pkgdir}/usr/bin"
 }