2 # Adapted from standard gdb package
3 # Maintainer: Andreas Messer <andi@surveycorner.de>
5 pkgname=cross-arm-elf-gdb
8 pkgdesc="The GNU Debugger for ARM target"
10 url="http://www.gnu.org/software/gdb/"
12 depends=('ncurses' 'expat' 'python2')
13 makedepends=('texinfo')
14 optdepends=('openocd: for debugging jtag targets')
16 source=(http://ftp.gnu.org/gnu/gdb/gdb-${pkgver}.tar.bz2)
17 md5sums=('b89a5fac359c618dda97b88645ceab47')
20 cd ${srcdir}/gdb-${pkgver}
22 ./configure --prefix=/usr \
26 --disable-nls --with-system-readline \
27 --with-local-prefix=/usr/lib/cross-arm
33 cd ${srcdir}/gdb-${pkgver}
34 make DESTDIR=${pkgdir} install || return 1
36 # resolve conflicts with binutils / remove unneeded files
37 rm -f ${pkgdir}/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h
38 rm -f ${pkgdir}/usr/lib/{libiberty,libbfd,libopcodes}.a
39 rm -rf ${pkgdir}/usr/share/info
40 rm -rf ${pkgdir}/usr/share/gdb/syscalls
41 rm -rf ${pkgdir}/usr/share/gdb/syscalls
42 rm -rf ${pkgdir}/usr/share/gdb/python