updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / gdb-archer-fb-git / PKGBUILD
blobf39bde782423ad3826296c634490817f473af717
1 # Maintainer: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
3 pkgname=gdb-archer-fb-git
4 pkgver=20101128
5 pkgrel=1
6 pkgdesc="The GNU Debugger with C++ debugging improvements (Archer Fedora branch)"
7 arch=('i686' 'x86_64')
8 url="http://sourceware.org/gdb/wiki/ProjectArcher"
9 license=('GPL3')
10 depends=('ncurses' 'expat' 'python2')
11 makedepends=('git' 'texinfo')
12 backup=('etc/gdb/gdbinit')
13 provides=('gdb')
14 conflicts=('gdb')
15 options=('!libtool')
16 install=gdb-archer-fb-git.install
18 _gitroot="git://sourceware.org/git/archer.git"
19 _gitname="archer"
20 _gitbranch="archer-jankratochvil-fedora15"
22 build() {
23   cd $srcdir
25   if [ -d "$_gitname" ] ; then
26     pushd $_gitname && git pull origin
27     popd
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31     msg "Git clone done or server timeout."
32   fi
34   rm -rf $_gitname-build
35   cp -r $_gitname $_gitname-build
36   cd $_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
48   make
51 package() {
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