Package Details: nrf5x-command-line-tools 10.24.2-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, 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.002413
First Submitted: 2016-02-13 22:31 (UTC)
Last Updated: 2024-04-22 08:30 (UTC)

Latest Comments

1 2 3 4 Next › Last »

pinsl commented on 2023-09-04 07:03 (UTC)

thanks, I added it

zUnixorn commented on 2023-08-24 12:33 (UTC)

The build failed when I didn't have python-setuptools installed. I think it should be added as a build dependency.

don4apaev commented on 2022-12-12 13:56 (UTC)

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"

casparfriedrich commented on 2022-06-08 18:17 (UTC)

Ah, damn! Sorry for the delay. Work is quite intense atm. Looks good to me. Applications are there.

pinsl commented on 2022-06-07 11:08 (UTC)

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

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.