blob: c2093066b44d8a51eea2e23d79674734776ed860 (
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
|
# Maintainer: Gökçe Aydos <aydos.de>
# Contributor: Patrick Oppenlander <patrick.oppenlander@gmail.com>
# Contributor: Jiuyang Liu <liujiuyang1994@gmail.com>
# Contributor: Emil Renner Berthing <aur@esmil.dk>
pkgname=openocd_riscv-git
pkgver=v0.9.0.r4033.g058dfa50d
pkgrel=1
pkgdesc='Fork of OpenOCD that has RISC-V support (by SpinalHDL for jtag_tcp support used by VexRiscv)'
arch=('x86_64')
url='https://github.com/SpinalHDL/openocd_riscv-git'
license=('GPL')
depends=('libftdi' 'hidapi')
makedepends=('git' 'automake>=1.11' 'autoconf' 'libtool')
source=("$pkgname::git+https://github.com/SpinalHDL/openocd_riscv.git")
sha1sums=('SKIP')
pkgdatadir="/usr/share/openocd_riscv"
pkgver() {
cd "$srcdir/$pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
git submodule update --init --recursive
}
build() {
cd "$srcdir/$pkgname"
# rename info file so we don't clash with a normal openocd install
sed -i 's/openocd.info/openocd_riscv.info/' doc/openocd.texi
./bootstrap
./configure \
--prefix=/usr \
--program-prefix=shdl-riscv- \
--disable-werror \
--with-gnu-ld
make pkgdatadir="$pkgdatadir"
}
package() {
cd "$srcdir/$pkgname"
make pkgdatadir="$pkgdatadir" DESTDIR="$pkgdir" install
}
|