core/gdb/PKGBUILD

52 lines
1.4 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
2015-08-31 00:43:01 +08:00
pkgver=7.10
2015-08-31 00:48:08 +08:00
pkgrel=2
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})
2015-08-31 00:43:01 +08:00
md5sums=('2a35bac41fa8e10bf04f3a0dd7f7f363'
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
2015-08-31 00:43:01 +08:00
rm ${pkgdir}/usr/share/info/bfd.info
2015-08-31 00:48:08 +08:00
rm "${pkgdir}/usr/include/plugin-api.h"
rm "${pkgdir}/usr/lib/libbfd.a"
rm "${pkgdir}/usr/lib/libopcodes.a"
2010-03-14 23:48:48 +08:00
}