diff options
author | Aviel Warschawski | 2017-11-08 14:08:49 +0200 |
---|---|---|
committer | Aviel Warschawski | 2017-11-08 14:08:49 +0200 |
commit | c7cdfe27db0867a496abcb275301137936377f91 (patch) | |
tree | 2fb4d59ba01879b8a1e05526c6a37113b50a41ec | |
download | aur-c7cdfe27db0867a496abcb275301137936377f91.tar.gz |
The GNU Debugger for all gdb supported architectures targets (i386/arm/mips...)
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e2b4d831d816 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = gdb-multiarch + pkgdesc = The GNU Debugger for all gdb supported architectures (i386/arm/mips...) target + pkgver = 8.0.1 + pkgrel = 1 + url = http://www.gnu.org/software/gdb/ + arch = i686 + arch = x86_64 + license = GPL3 + depends = xz + depends = ncurses + depends = expat + depends = python + depends = guile2.0 + depends = gdb-common + options = !emptydirs + source = ftp://ftp.gnu.org/gnu/gdb/gdb-8.0.1.tar.xz + source = ftp://ftp.gnu.org/gnu/gdb/gdb-8.0.1.tar.xz.sig + validpgpkeys = F40ADB902B24264AA42E50BF92EDB04BFF325CF3 + sha256sums = 3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3 + sha256sums = SKIP + +pkgname = gdb-multiarch + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9717f8ac5779 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Aviel Warschawski <aviel.warschawski@gmail.com> + +pkgname=gdb-multiarch +pkgver=8.0.1 +pkgrel=1 +pkgdesc='The GNU Debugger for all gdb supported architectures targets (i386/arm/mips...)' +arch=(i686 x86_64) +url='http://www.gnu.org/software/gdb/' +license=(GPL3) +depends=(xz ncurses expat python guile2.0 gdb-common) +options=(!emptydirs) +source=(ftp://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig}) +sha256sums=('3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3' + 'SKIP') +validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <brobecker@adacore.com> + +prepare() { + cd gdb-$pkgver + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure +} + +build() { + cd gdb-$pkgver + + ./configure \ + --enable-targets=all \ + --prefix=/build \ + --enable-languages=c,c++ \ + --enable-multilib \ + --enable-interwork \ + --with-system-readline \ + --disable-nls \ + --with-python=/usr/bin/python3 \ + --with-guile=guile-2.0 \ + --with-system-gdbinit=/etc/gdb/gdbinit + + make +} + +package() { + cd gdb-$pkgver + + make DESTDIR="$pkgdir" install + + # Following files conflict with 'gdb' package + mkdir -p "$pkgdir"/usr/bin + mv "$pkgdir"/build/bin/gdb "$pkgdir"/usr/bin/gdb-multiarch + rm -r "$pkgdir"/build +} |