updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cross-arm-elf-gdb / PKGBUILD
blobe9985a15cd2d53c4c0b6a5ab41452e2922056e8a
1 # $Id:$
2 # Adapted from standard gdb package 
3 # Maintainer: Andreas Messer <andi@surveycorner.de>
5 pkgname=cross-arm-elf-gdb
6 pkgver=7.3.1
7 pkgrel=1
8 pkgdesc="The GNU Debugger for ARM target"
9 arch=('i686' 'x86_64')
10 url="http://www.gnu.org/software/gdb/"
11 license=('GPL3')
12 depends=('ncurses' 'expat' 'python2')
13 makedepends=('texinfo')
14 optdepends=('openocd: for debugging jtag targets')
15 options=('!libtool')
16 source=(http://ftp.gnu.org/gnu/gdb/gdb-${pkgver}.tar.bz2)
17 md5sums=('b89a5fac359c618dda97b88645ceab47')
19 build() {
20   cd ${srcdir}/gdb-${pkgver}
21   
22   ./configure --prefix=/usr \
23         --target=arm-elf \
24         --host=$CHOST \
25         --build=$CHOST \
26         --disable-nls --with-system-readline \
27         --with-local-prefix=/usr/lib/cross-arm
29   make || return 1
32 package() {
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