updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / gdb-d / PKGBUILD
blob9aa29862115f02193d3b12c0f7c38e2e7905f302
1 # Maintainer: MrSunshine
2 pkgname=gdb-d
3 pkgver=6.8
4 pkgrel=1
5 pkgdesc="The GNU Debugger With D support"
6 arch=(i686 x86_64)
7 url="http://sources.redhat.com/gdb/"
8 depends=('ncurses' 'expat')
9 options=('!libtool')
10 license=('GPL3')
11 conflicts=('gdb')
12 makedepends=('gcc' 'subversion')
13 install=gdb.install
14 source=(http://ftp.gnu.org/gnu/gdb/gdb-${pkgver}.tar.bz2)
15 md5sums=('c9da266b884fb8fa54df786dfaadbc7a')
17 build() {
18   svn co http://svn.dsource.org/projects/gdb-patches/downloads/gdb6.8/ gdb-patches
19   cd ${startdir}/src/gdb-${pkgver}
20   patch -t -N -p1 -i ${startdir}/src/gdb-patches/gdb-6.8-d-1.patch || return 1
22   ./configure --prefix=/usr --disable-nls --mandir=/usr/share/man \
23       --infodir=/usr/share/info
24   make || return 1
25   make DESTDIR=${startdir}/pkg install || return 1
26   rm -f ${pkgdir}/usr/share/info/dir
27   # resolve conflicts with binutils
28   rm -f ${startdir}/pkg/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h
29   rm -f ${startdir}/pkg/usr/lib/{libiberty,libbfd,libopcodes}.a
30   rm -f ${startdir}/pkg/usr/share/info/{bfd.info,configure.info,standards.info}