# Maintainer: Natanael Copa pkgname=gdb pkgver=7.3 pkgrel=0 pkgdesc="The GNU Debugger" url="http://sources.redhat.com/gdb/" arch="all" license="GPL3" depends= makedepends="ncurses-dev expat-dev" subpackages="$pkgname-doc" source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2" # patches were found here: # http://distfiles.gentoo.org/distfiles/gdb-7.2-patches-1.tar.xz _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build () { cd "$_builddir" ./configure --prefix=/usr \ --disable-nls \ --without-system-readline \ --disable-werror \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/share/info/dir # those are provided by binutils rm -rf "$pkgdir"/usr/include rm -rf "$pkgdir"/usr/lib } md5sums="485022b8df7ba2221f217e128f479fe7 gdb-7.3.tar.bz2"