1 # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org>
6 pkgdesc='In application debugger for ARM Cortex microcontrollers'
8 url='https://github.com/blacksphere/blackmagic'
10 depends=('libusb' 'libftdi' 'libhidapi-libusb.so')
11 makedepends=('git' 'hidapi' 'python')
12 # 'arm-none-eabi-gcc')
13 source=("git+$url#tag=v$pkgver")
14 # 'git+https://github.com/libopencm3/libopencm3.git')
21 # git config submodule.libopencm3.url "$srcdir"/libopencm3
22 # git submodule update
26 sed -i 's| -Werror||' $pkgname/src/Makefile
32 make PROBE_HOST=hosted
38 install -Dm 755 src/blackmagic "$pkgdir"/usr/bin/blackmagic
40 install -Dm 644 driver/*.rules -t "$pkgdir"/usr/share/solaar/udev-rules.d/