summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88f2ce7655c9e7a24596043c76fa89d6bd5383a9 (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
# Maintainer: Alexis Polti <ArchSegger at gmail dot com>

pkgname=jlink-systemview-target-src
pkgver=3.20
pkgrel=1
epoch=1
pkgdesc="Segger SystemView target src for Linux"
arch=('i686' 'x86_64')
license=('custom')
groups=('jlink')
depends=()
source=("https://www.segger.com/downloads/jlink/systemview_target_src")
md5sums=('31f613cc0407a297560a16a1c203cb3c')
url="https://www.segger.com/downloads/free-utilities/#SystemView"

package(){
    # Cleanup
    rm -f cookie
    # Work around a stupid behaviour of Yay
    rm -f $(HOME)/.cache/yay/jlink-systemview-target-src

    # Match package in /opt
    install -dm755 "${pkgdir}/opt/SEGGER/Target-src" \

    # Bulk copy target sources
    cd ${srcdir}
    cp --preserve=mode -r Config Sample SEGGER "${pkgdir}/opt/SEGGER/Target-src"
}