archrelease: copy trunk to community-any
[ArchLinux/community.git] / blackmagic / trunk / PKGBUILD
blob8357cd84dccf315542a58da9f7b226349e2df7cc
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 pkgname=blackmagic
4 pkgver=1.9.1
5 pkgrel=1
6 pkgdesc='In application debugger for ARM Cortex microcontrollers'
7 arch=('x86_64')
8 url='https://github.com/blacksphere/blackmagic'
9 license=('GPL')
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')
15 sha512sums=('SKIP')
17 #prepare() {
18 #  cd $pkgname
20 #  git submodule init
21 #  git config submodule.libopencm3.url "$srcdir"/libopencm3
22 #  git submodule update
25 prepare() {
26   sed -i 's| -Werror||' $pkgname/src/Makefile
29 build() {
30   cd $pkgname
32   make PROBE_HOST=hosted
35 package() {
36   cd $pkgname
38   install -Dm 755 src/blackmagic "$pkgdir"/usr/bin/blackmagic
40   install -Dm 644 driver/*.rules -t "$pkgdir"/usr/share/solaar/udev-rules.d/