diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/gdb |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/gdb')
-rw-r--r-- | extra/gdb/PKGBUILD | 44 | ||||
-rw-r--r-- | extra/gdb/gdb.install | 18 |
2 files changed, 62 insertions, 0 deletions
diff --git a/extra/gdb/PKGBUILD b/extra/gdb/PKGBUILD new file mode 100644 index 000000000..385774b89 --- /dev/null +++ b/extra/gdb/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 90312 2010-09-10 14:58:18Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=gdb +pkgver=7.2 +pkgrel=2 +pkgdesc="The GNU Debugger" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/gdb/" +license=('GPL3') +depends=('ncurses' 'expat' 'python2') +makedepends=('texinfo') +backup=('etc/gdb/gdbinit') +options=('!libtool') +install=gdb.install +source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.bz2) +md5sums=('64260e6c56979ee750a01055f16091a5') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + ./configure --prefix=/usr --disable-nls \ + --with-system-readline \ + --with-system-gdbinit=/etc/gdb/gdbinit + make + + # requires dejagnu + #make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + # install "custom" system gdbinit + install -dm755 $pkgdir/etc/gdb + touch $pkgdir/etc/gdb/gdbinit + + # resolve conflicts with binutils + rm ${pkgdir}/usr/include/{ansidecl,bfd,bfdlink,dis-asm,symcat}.h + rm ${pkgdir}/usr/lib/{libbfd,libiberty,libopcodes}.a + rm ${pkgdir}/usr/share/info/{bfd,configure,standards}.info +} diff --git a/extra/gdb/gdb.install b/extra/gdb/gdb.install new file mode 100644 index 000000000..44302170f --- /dev/null +++ b/extra/gdb/gdb.install @@ -0,0 +1,18 @@ +infodir=/usr/share/info +filelist=(annotate.info gdb.info gdb.info-1 gdb.info-2 gdb.info-3 gdb.info-4 gdbint.info gdbint.info-1 gdbint.info-2 stabs.info) + +post_install() { + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} |