core/gdb/PKGBUILD

50 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
2017-10-25 05:16:46 +08:00
pkgver=8.0.1
2017-01-03 09:27:44 +08:00
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')
2017-01-03 09:27:44 +08:00
depends=('ncurses' 'expat' 'guile' 'python3' '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})
2017-10-25 05:16:46 +08:00
md5sums=('48cac527e6f3018b865ece021e9723ac'
2014-06-26 07:54:21 +08:00
'SKIP')
2017-01-03 09:27:44 +08:00
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
2014-06-26 07:54:21 +08:00
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 \
2017-01-03 09:27:44 +08:00
--with-python=/usr/bin/python3 \
--with-system-gdbinit=/etc/gdb/gdbinit
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
2017-01-03 09:27:44 +08:00
rm $pkgdir/usr/include/{ansidecl,bfd,bfdlink,dis-asm,plugin-api,symcat}.h
rm $pkgdir/usr/share/info/bfd.info
rm $pkgdir/usr/lib/{libbfd,libopcodes}.a
2010-03-14 23:48:48 +08:00
}