blob: 99a8ee06e62d9f4a85940c8ea043446ab141d1cb (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: kumen
pkgname="embedded-studio-arm-nordic"
pkgver=5.68
pkgrel=1
pkgdesc="Segger Embedded Studio for ARM, Nordic version"
arch=('x86_64' 'i686')
makedepends=()
depends=('jlink-software-and-documentation')
optdepends=()
conflicts=()
replaces=()
url="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#ses-nordic-edition"
license=('Commercial')
options=(!strip)
source_x86_64=("Setup_EmbeddedStudio_ARM_Nordic_v${pkgver/./}_linux_x64.tar.gz::https://dl2.segger.com/files/embedded-studio/EmbeddedStudio_ARM_Nordic_v${pkgver/./}_linux_x64.tar.gz")
source_i686=("Setup_EmbeddedStudio_ARM_Nordic_v${pkgver/./}_linux_x86.tar.gz::https://dl2.segger.com/files/embedded-studio/EmbeddedStudio_ARM_Nordic_v${pkgver/./}_linux_x86.tar.gz")
sha256sums_x86_64=('bffcd895d076b191b379b142ef5f6346808761dde733ea05d73f4a89dab683a0')
sha256sums_i686=('a7141cf6369af9050df85c305587114b88431a8c6413c7171276534a08ba4ec8')
prepare(){
# Change src path name
case ${CARCH} in
"x86_64")
mv ${srcdir}/arm_segger_embedded_studio_v${pkgver/./}_linux_x64_nordic embedded-studio-arm
;;
"i686")
mv ${srcdir}/arm_segger_embedded_studio_v${pkgver/./}_linux_x86_nordic embedded-studio-arm
;;
esac
}
package() {
install -dm755 "${pkgdir}/opt/SEGGER/Embedded-Studio-ARM-Nordic" \
"${pkgdir}/usr/share/licenses/${pkgname}" \
"${pkgdir}/usr/bin/" \
msg2 'Installing Embedded Studio ARM Nordic'
mv "${srcdir}/embedded-studio-arm/"* "${pkgdir}/opt/SEGGER/Embedded-Studio-ARM-Nordic/"
msg2 'Instalation of binary file'
ln -s /opt/SEGGER/Embedded-Studio-ARM-Nordic/bin/emStudio "${pkgdir}/usr/bin/emStudio-ARM-Nordic"
msg2 'Installing desktop shortcut and icon'
install -Dm 644 "${pkgdir}/opt/SEGGER/Embedded-Studio-ARM-Nordic/bin/StudioIcon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <<END
[Desktop Entry]
Name=ARM Embedded Studio Nordic Edition
Comment=SEGGER Embedded Studio for ARM (Nordic Edition)
GenericName=Embedded Studio ARM (Nordic edition)
Exec=env GDK_BACKEND=x11 emStudio-ARM-Nordic %F
Icon=embedded-studio-arm
Path=/opt/SEGGER/Embedded-Studio-ARM-Nordic/bin
Terminal=false
StartupNotify=true
Type=Application
Categories=Development
END
msg2 'Instalation of license file'
ln -s /opt/SEGGER/Embedded-Studio-ARM-Nordic/html/License.htm "${pkgdir}/usr/share/licenses/${pkgname}/"
}
#
# makepkg --printsrcinfo > .SRCINFO
#
# vim: set ts=8 sw=8 tw=0 noet:
|