Package Details: nrf5x-command-line-tools 10.15.0-0

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 and nRF91 MCU using J-Link
Upstream URL: https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools
Licenses: custom
Conflicts: nrfjprog
Provides: nrfjprog
Submitter: Limoto
Maintainer: pjvds
Last Packager: pjvds
Votes: 17
Popularity: 0.84
First Submitted: 2016-02-13 22:31
Last Updated: 2021-11-11 09:25

Latest Comments

1 2 3 Next › Last »

dp7hgh7 commented on 2021-11-09 15:14

I can also co-maintain if you want.

dp7hgh7 commented on 2021-11-09 15:12

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

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

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

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

pinsl commented on 2021-09-10 09:40

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"
 }

AlexisPolti commented on 2021-07-23 12:28

@marza : Thanks to YOU to have taken the time to thank me :-) People often take others' free work for granted.

Do not hesitate to adopt the package. The updates are not so frequent. The only downside is that, unlike Segger (cf. jlink-* packages that I maintain), Nordic change their URL and directory structure at each release. So instead of taking 1mn to make a new release as for Segger's tools, it takes around 10mn. But that would be great of you !

marza commented on 2021-07-23 12:10

Thank you very much for the maintenance while it lasted :)

While I can't promise anything, I do use the nrf tools on an irregular basis, so I might take a stab at it the next time I need it.

AlexisPolti commented on 2021-07-22 10:36

Sorry, i don't use this tool anymore and don't have time to maintain this package anymore as Nordic keeps changing their URLs, files' and directory' names... So I disown it, feel free to take it back!

AlexisPolti commented on 2021-06-07 17:06

I didn't packahe Python bindings. As I don't have any real interest in this package anymore, if someone wants to take over its maintenance, you're welcome!