blob: a4ae96b7535f530773d72a54dc1f8406c80b5cbc (
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
|
# Maintainer: Alexis Polti <ArchSegger at gmail dot com>
# Maintainer: pzl <alsoelp at gmail dot com>
pkgname=jlink-systemview
pkgver=3.58
pkgrel=0
epoch=9
pkgdesc="Segger SystemView for Linux"
arch=('x86_64')
license=('custom')
groups=('jlink')
depends=('jlink-software-and-documentation' 'jlink-systemview-target-src')
source_x86_64=("SystemView_Linux_V${pkgver/./}_x86_64.tgz::https://www.segger.com/downloads/systemview/systemview_linux_tgz64")
source=("SystemView.desktop" "SystemView.svg")
md5sums_x86_64=('485546eb74b676ce298b62a88d590419')
md5sums=('89e75b3008c53de7fc22c00da5abba01' '54635efec35cdbb6f60b997a8fceee74')
url="https://www.segger.com/downloads/jlink/"
package(){
# Cleanup
rm -f cookie
# Change src path name
mv SystemView_Linux_V${pkgver/./}_x86_64 SystemView
# Match package placement from their .deb, in /opt
install -dm755 "${pkgdir}/opt/SEGGER/SystemView" \
"${pkgdir}/usr/share/licenses/${pkgname}" \
"${pkgdir}/usr/bin/" \
"${pkgdir}/usr/share/doc/${pkgname}/" \
"${pkgdir}/usr/share/pixmaps" \
"${pkgdir}/usr/share/applications"
# Install desktop entry
rm -f "${pkgdir}/usr/share/applications/SystemView.desktop"
install -Dm644 "SystemView.desktop" "${pkgdir}/usr/share/applications/JLink\ SystemView.desktop"
install -Dm644 "SystemView.svg" "${pkgdir}/usr/share/pixmaps/SystemView.svg"
cd ${srcdir}/SystemView
# Bulk copy everything
cp --preserve=mode -r SystemView Description Doc Sample lib* "${pkgdir}/opt/SEGGER/SystemView"
# Create links where needed
ln -s /opt/SEGGER/SystemView/Doc/License_SystemView.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
ln -s /opt/SEGGER/SystemView/SystemView "${pkgdir}/usr/bin"
for f in Doc/*; do
ln -s /opt/SEGGER/SystemView/"$f" "${pkgdir}/usr/share/doc/${pkgname}"
done
}
|