blob: af9046dbbbc1aaf3355188575801e0b6d15c57d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Jakub Luzny (jakub@luzny.cz)
pkgname=nrf5x-command-line-tools
pkgver=9.6.0
pkgrel=2
pkgdesc="Tools for programming Nordic nRF51 MCU using J-Link"
arch=('i686' 'x86_64')
url="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF51822"
license=('unknown')
depends=('jlink-software-and-documentation')
provides=('nrfjprog')
conflicts=('nrfjprog')
options=()
source_i686=("nRF5x-Command-Line-Tools_${pkgver//./_}_Linux-i386.tar::https://www.nordicsemi.com/eng/nordic/download_resource/52615/19/33929334/97746")
source_x86_64=("nRF5x-Command-Line-Tools_${pkgver//./_}_Linux-x86-64.tar::https://www.nordicsemi.com/eng/nordic/download_resource/51386/24/31267006/94917")
md5sums_i686=('5fa79b9d46faa0c3365f72c4dc55db6b')
md5sums_x86_64=('f68caffe9cc6854a049e742530f9807a')
package() {
# Install nrfjprog and mergehex
install -dm755 "${pkgdir}/opt/nrfjprog" "${pkgdir}/opt/mergehex" "$pkgdir/usr/bin"
cd ${srcdir}/nrfjprog
cp --preserve=mode * "${pkgdir}/opt/nrfjprog"
cd ${srcdir}/mergehex
cp --preserve=mode * "${pkgdir}/opt/mergehex"
ln -s "/opt/nrfjprog/nrfjprog" "${pkgdir}/usr/bin"
ln -s "/opt/mergehex/mergehex" "${pkgdir}/usr/bin"
}
|