1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
5 pkgdesc="The GNU Debugger"
7 url="http://www.gnu.org/software/gdb/"
9 depends=('expat' 'ncurses' 'python2')
13 backup=('etc/gdb/gdbinit')
19 _cvsroot=":pserver:anoncvs@sourceware.org:/cvs/src"
24 msg "Connecting to the CVS server...."
25 if [ -d $_cvsmod/CVS ]; then
30 cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
33 msg "CVS checkout done or server timeout"
34 msg "Starting make..."
36 if [ -e "$srcdir"/$_cvsmod-build ]; then
37 rm -rf "$srcdir"/$_cvsmod-build
40 cp -r "$srcdir"/src "$srcdir"/$_cvsmod-build
41 cd "$srcdir"/$_cvsmod-build
43 ./configure --prefix=/usr --disable-nls --disable-werror \
44 --with-system-readline \
45 --with-system-gdbinit=/etc/gdb/gdbinit
50 cd "$srcdir"/$_cvsmod-build
51 make DESTDIR="$pkgdir/" install
53 # install "custom" system gdbinit
54 install -dm755 $pkgdir/etc/gdb
55 touch $pkgdir/etc/gdb/gdbinit
57 # resolve conflicts with binutils
58 rm -f ${pkgdir}/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h
59 rm -f ${pkgdir}/usr/lib/{libiberty,libbfd,libopcodes}.a
60 rm -f ${pkgdir}/usr/share/info/{bfd.info,configure.info,standards.info}