summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 21 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9947b8d4531..2c500bd338e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,37 @@
-# Maintainer: Alexis Polti (alexis@free.fr)
+# Maintainer: Alexis Polti <alexis@free.fr>
+# Corrected by Nim65s <guilhem@saurel.me>
+
pkgname=nrf5x-command-line-tools
pkgver=10.2.1
-pkgrel=1
-pkgdesc="Tools for programming Nordic nRF51 MCU using J-Link"
+pkgrel=2
+pkgdesc="Tools for programming Nordic nRF51, nRF52 and nRF91 MCU using J-Link"
arch=('i686' 'x86_64')
-url="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF51822"
-license=('unknown')
+url="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools"
+license=('custom')
depends=('jlink-software-and-documentation')
provides=('nrfjprog')
conflicts=('nrfjprog')
options=()
-source_i686=("nRF5x-Command-Line-Tools_${pkgver//./_}_Linux-i386.tar::https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/nRFCommandLineTools${pkgver//./}Linuxi386tar.gz")
-
-source_x86_64=("nRF5x-Command-Line-Tools_${pkgver//./_}_Linux-x86-64.tar::https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/nRFCommandLineTools${pkgver//./}Linuxamd64tar.gz")
+_source="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/nRFCommandLineTools${pkgver//./}Linux"
+source_i686=("${_source}i386tar.gz")
+source_x86_64=("${_source}amd64tar.gz")
md5sums_i686=('6f05f33e3b5ddeded20de6a68de9504c')
md5sums_x86_64=('43d6e89d934be59ca41a5d7df7d10752')
package() {
- # Install nrfjprog and mergehex
- install -dm755 "${pkgdir}/opt/nrfjprog" "${pkgdir}/opt/mergehex" "$pkgdir/usr/bin"
-
cd ${srcdir}
- cp --preserve=mode * "${pkgdir}/opt/nrfjprog"
+ echo "nRF-Command-Line-Tools_${pkgver//./_}_Linux-amd64.tar.gz"
+ tar xf "nRF-Command-Line-Tools_${pkgver//./_}_Linux-amd64.tar.gz"
- cd ${srcdir}
- cp --preserve=mode * "${pkgdir}/opt/mergehex"
+ # Install nrfjprog and mergehex
+ install -dm755 "${pkgdir}/opt/nrfjprog" "${pkgdir}/opt/mergehex"
+ install -dm755 "${pkgdir}/usr/bin" "${pkgdir}/usr/share/licenses/${pkgname}"
+
+ cp --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"
- ln -s "/opt/nrfjprog/nrfjprog" "${pkgdir}/usr/bin"
- ln -s "/opt/mergehex/mergehex" "${pkgdir}/usr/bin"
+ ln -s "/opt/nrfjprog/nrfjprog" "${pkgdir}/usr/bin"
+ ln -s "/opt/mergehex/mergehex" "${pkgdir}/usr/bin"
}