summaryrefslogtreecommitdiffstats
path: root/abs/core/gdb
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-16 03:35:01 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-16 03:35:01 (GMT)
commit48ccb28d39f167323be501ef0d628ab18cb14a70 (patch)
tree613a7e051fe3d9ddb365284d1c4906cef8e9307a /abs/core/gdb
parent971174824b58251880f02f2d57792c062e3f1aec (diff)
downloadlinhes_pkgbuild-48ccb28d39f167323be501ef0d628ab18cb14a70.zip
linhes_pkgbuild-48ccb28d39f167323be501ef0d628ab18cb14a70.tar.gz
linhes_pkgbuild-48ccb28d39f167323be501ef0d628ab18cb14a70.tar.bz2
gdb: up to latest
Diffstat (limited to 'abs/core/gdb')
-rw-r--r--abs/core/gdb/PKGBUILD49
-rw-r--r--abs/core/gdb/gdb.install4
2 files changed, 35 insertions, 18 deletions
diff --git a/abs/core/gdb/PKGBUILD b/abs/core/gdb/PKGBUILD
index e4ee109..d96cb93 100644
--- a/abs/core/gdb/PKGBUILD
+++ b/abs/core/gdb/PKGBUILD
@@ -1,27 +1,44 @@
-# $Id: PKGBUILD 10684 2008-08-29 21:45:41Z eric $
+# $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=6.8
-pkgrel=3
+pkgver=7.2
+pkgrel=2
pkgdesc="The GNU Debugger"
-arch=(i686 x86_64)
-url="http://sources.redhat.com/gdb/"
-depends=('ncurses' 'expat')
-options=('!libtool')
+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=('c9da266b884fb8fa54df786dfaadbc7a')
+md5sums=('64260e6c56979ee750a01055f16091a5')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
- ./configure --prefix=/usr --disable-nls --mandir=/usr/share/man \
- --infodir=/usr/share/info
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr --disable-nls \
+ --with-system-readline \
+ --with-system-gdbinit=/etc/gdb/gdbinit
make || return 1
- make DESTDIR=${startdir}/pkg install || return 1
- rm -f ${pkgdir}/usr/share/info/dir
+
+ # requires dejagnu
+ #make check
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install || return 1
+
+ # install "custom" system gdbinit
+ install -dm755 $pkgdir/etc/gdb
+ touch $pkgdir/etc/gdb/gdbinit
+
# 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}
+ 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/abs/core/gdb/gdb.install b/abs/core/gdb/gdb.install
index ca793a1..4430217 100644
--- a/abs/core/gdb/gdb.install
+++ b/abs/core/gdb/gdb.install
@@ -3,7 +3,7 @@ filelist=(annotate.info gdb.info gdb.info-1 gdb.info-2 gdb.info-3 gdb.info-4 gdb
post_install() {
for file in ${filelist[@]}; do
- install-info $infodir/$file $infodir/dir 2> /dev/null
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
@@ -13,6 +13,6 @@ post_upgrade() {
pre_remove() {
for file in ${filelist[@]}; do
- install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}