1 # Maintainer: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
3 pkgname=gdb-archer-fb-git
6 pkgdesc="The GNU Debugger with C++ debugging improvements (Archer Fedora branch)"
8 url="http://sourceware.org/gdb/wiki/ProjectArcher"
10 depends=('ncurses' 'expat' 'python2')
11 makedepends=('git' 'texinfo')
12 backup=('etc/gdb/gdbinit')
16 install=gdb-archer-fb-git.install
18 _gitroot="git://sourceware.org/git/archer.git"
20 _gitbranch="archer-jankratochvil-fedora15"
25 if [ -d "$_gitname" ] ; then
26 pushd $_gitname && git pull origin
28 msg "The local files are updated."
31 msg "Git clone done or server timeout."
34 rm -rf $_gitname-build
35 cp -r $_gitname $_gitname-build
37 git checkout -tb $_gitbranch origin/$_gitbranch
39 msg "Git checkout done."
40 msg "Starting make..."
42 mkdir build && cd build
44 ../configure --prefix=/usr --disable-nls \
45 --with-system-readline \
46 --with-system-gdbinit=/etc/gdb/gdbinit \
47 --with-python=/usr/bin/python2
52 cd $srcdir/$_gitname-build/build
53 make DESTDIR=$pkgdir install
55 install -dm755 $pkgdir/etc/gdb
56 touch $pkgdir/etc/gdb/gdbinit
58 # Resolve conflicts with binutils
59 rm ${pkgdir}/usr/include/{ansidecl,bfd,bfdlink,dis-asm,symcat}.h
60 rm ${pkgdir}/usr/lib/{libbfd,libiberty,libopcodes}.a
61 rm ${pkgdir}/usr/share/info/{bfd,configure,standards}.info