diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-09 18:41:37 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-09 18:41:37 (GMT) |
commit | 1c4b59e5d379ba44c9ba9e27750ebec49a597c0d (patch) | |
tree | 25fca8e6b7b683065d364d64865b60c6bb33bd2b /abs/core-testing/gdb | |
parent | fbc08d61eff10b56a2fbab64a8dab5bdc1eb5edf (diff) | |
download | linhes_pkgbuild-1c4b59e5d379ba44c9ba9e27750ebec49a597c0d.zip linhes_pkgbuild-1c4b59e5d379ba44c9ba9e27750ebec49a597c0d.tar.gz linhes_pkgbuild-1c4b59e5d379ba44c9ba9e27750ebec49a597c0d.tar.bz2 |
gdb,telnet,patch,make,vte
Diffstat (limited to 'abs/core-testing/gdb')
-rw-r--r-- | abs/core-testing/gdb/PKGBUILD | 27 | ||||
-rw-r--r-- | abs/core-testing/gdb/gdb.install | 18 |
2 files changed, 45 insertions, 0 deletions
diff --git a/abs/core-testing/gdb/PKGBUILD b/abs/core-testing/gdb/PKGBUILD new file mode 100644 index 0000000..e4ee109 --- /dev/null +++ b/abs/core-testing/gdb/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 10684 2008-08-29 21:45:41Z eric $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +pkgname=gdb +pkgver=6.8 +pkgrel=3 +pkgdesc="The GNU Debugger" +arch=(i686 x86_64) +url="http://sources.redhat.com/gdb/" +depends=('ncurses' 'expat') +options=('!libtool') +license=('GPL3') +install=gdb.install +source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.bz2) +md5sums=('c9da266b884fb8fa54df786dfaadbc7a') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + ./configure --prefix=/usr --disable-nls --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 + make DESTDIR=${startdir}/pkg install || return 1 + rm -f ${pkgdir}/usr/share/info/dir + # resolve conflicts with binutils + rm -f ${startdir}/pkg/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h + rm -f ${startdir}/pkg/usr/lib/{libiberty,libbfd,libopcodes}.a + rm -f ${startdir}/pkg/usr/share/info/{bfd.info,configure.info,standards.info} +} diff --git a/abs/core-testing/gdb/gdb.install b/abs/core-testing/gdb/gdb.install new file mode 100644 index 0000000..ca793a1 --- /dev/null +++ b/abs/core-testing/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 $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |