Date: Sunday, February 23, 2014 @ 00:11:57 Author: anatolik Revision: 106104
arm-none-eabi-gdb: move arm cross-tools from from aur to community Added: arm-none-eabi-gdb/ arm-none-eabi-gdb/repos/ arm-none-eabi-gdb/trunk/ arm-none-eabi-gdb/trunk/PKGBUILD ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Added: arm-none-eabi-gdb/trunk/PKGBUILD =================================================================== --- arm-none-eabi-gdb/trunk/PKGBUILD (rev 0) +++ arm-none-eabi-gdb/trunk/PKGBUILD 2014-02-22 23:11:57 UTC (rev 106104) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Anatol Pomozov <[email protected]> +# Contributor: Martin Schmölzer <[email protected]> + +_target=arm-none-eabi +pkgname=$_target-gdb +pkgver=7.7 +pkgrel=2 +pkgdesc='The GNU Debugger for the ARM EABI (bare-metal) target' +arch=(i686 x86_64) +url='http://www.gnu.org/software/gdb/' +license=(GPL3) +depends=(xz ncurses expat python2) +makedepends=(texinfo) +optdepends=('openocd: for debugging JTAG targets' + 'stlink: for debugging over STLINK') +options=(!emptydirs) +source=(ftp://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.bz2) +sha256sums=('0404d1c6ee6b3ddd811722b5197944758d37b4591c216030effbac204f5a6c23') + +build() { + cd gdb-$pkgver + + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure + + ./configure --target=$_target \ + --prefix=/usr \ + --enable-multilib \ + --enable-interwork \ + --with-system-readline \ + --disable-nls \ + --with-python=/usr/bin/python2 \ + --with-system-gdbinit=/etc/gdb/gdbinit + make +} + +package() { + cd gdb-$pkgver + + make DESTDIR="$pkgdir" install + + # Following files conflict with 'gdb' package + rm -r "$pkgdir"/usr/share/info + # TOTHINK: we remove python module used for debugging. It means arm-*-gdb alone will not be able to debug and 'gdb' package + # should be installed. File a bug upstream - ask a separate python module folder for cross tools. + rm -r "$pkgdir"/usr/share/gdb + rm -r "$pkgdir"/usr/include/gdb + rm "$pkgdir"/usr/share/man/man1/gdb* + rm -r "$pkgdir"/usr/share/man/man5 +} Property changes on: arm-none-eabi-gdb/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
