1 # Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
2 # Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
3 # Contributor: Martin Schmölzer <mschmoelzer@gmail.com>
9 pkgdesc='The GNU Debugger for the OpenRISC 100 (bare-metal) target'
11 url='https://www.gnu.org/software/gdb/'
13 depends=(xz ncurses expat python guile gdb-common mpfr libelf source-highlight)
16 source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig}
18 sha512sums=('425568d2e84672177d0fb87b1ad7daafdde097648d605e30cf0656970f66adc6a82ca2d83375ea4be583e9683a340e5bfdf5819668ddf66728200141ae50ff2d'
20 '0c0d7fff104c73fe1da69b8502cef904243026bf86250eb4b81c5646e84a4a2a5bf97a38e705cc96450b2c52e67f3248bab35f38dbe4b5afd975e1493ef161bf')
21 validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <brobecker@adacore.com>
25 patch -Np1 -i ../readline8.patch
27 mkdir -p build && cd build
31 --enable-languages=c,c++ \
34 --with-system-readline \
36 --enable-source-highlight \
37 --with-python=/usr/bin/python \
38 --with-system-gdbinit=/etc/gdb/gdbinit
46 make -C gdb DESTDIR="$pkgdir" install
48 # Following files conflict with 'gdb'/'gdb-common' packages
49 rm -r "$pkgdir"/usr/include/gdb/
50 rm -r "$pkgdir"/usr/share/gdb/
51 rm -r "$pkgdir"/usr/share/info/
52 rm -r "$pkgdir"/usr/share/man/man5/