core/gdb/PKGBUILD

49 lines
1.3 KiB
Bash
Raw Normal View History

2014-06-26 07:54:21 +08:00
# Maintainer: Drake Justice <djustice@chakraos.org>
2010-03-14 23:48:48 +08:00
pkgname=gdb
2014-09-17 10:57:45 +08:00
pkgver=7.8
pkgrel=1
2010-03-14 23:48:48 +08:00
pkgdesc="The GNU Debugger"
2013-03-11 04:45:05 +08:00
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://www.gnu.org/software/gdb/"
license=('GPL3')
2014-06-26 07:54:21 +08:00
depends=('ncurses' 'expat' 'python2' 'xz')
2010-03-14 23:48:48 +08:00
makedepends=('texinfo')
backup=('etc/gdb/gdbinit')
install=gdb.install
2014-09-17 10:57:45 +08:00
source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
md5sums=('bd958fe9019d7c7896f29f6724a764ed'
2014-06-26 07:54:21 +08:00
'SKIP')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
# hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}
2010-03-14 23:48:48 +08:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
2014-09-17 10:57:45 +08:00
# guile support has a severe bug https://sourceware.org/bugzilla/show_bug.cgi?id=17247
2010-03-14 23:48:48 +08:00
./configure --prefix=/usr --disable-nls \
--with-system-readline \
2013-03-11 04:45:05 +08:00
--with-python=/usr/bin/python2 \
2014-09-17 10:57:45 +08:00
--with-system-gdbinit=/etc/gdb/gdbinit \
--without-guile
2011-11-20 01:42:12 +08:00
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
2010-03-14 23:48:48 +08:00
# install "custom" system gdbinit
install -dm755 $pkgdir/etc/gdb
touch $pkgdir/etc/gdb/gdbinit
# resolve conflicts with binutils
2011-11-20 01:42:12 +08:00
rm ${pkgdir}/usr/include/{ansidecl,bfd,bfdlink,dis-asm,symcat}.h
rm ${pkgdir}/usr/share/info/{bfd,configure,standards}.info
2010-03-14 23:48:48 +08:00
}