mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 11:14:35 +08:00
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
|
|
pkgname=gdb
|
|
pkgver=8.0.1
|
|
pkgrel=2
|
|
pkgdesc="The GNU Debugger"
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/gdb/"
|
|
license=('GPL3')
|
|
depends=('ncurses' 'expat' 'guile' 'python3' 'xz')
|
|
makedepends=('texinfo')
|
|
backup=('etc/gdb/gdbinit')
|
|
install=gdb.install
|
|
source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
|
|
md5sums=('48cac527e6f3018b865ece021e9723ac'
|
|
'SKIP')
|
|
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
|
|
|
|
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
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
# guile support has a severe bug https://sourceware.org/bugzilla/show_bug.cgi?id=17247
|
|
./configure --prefix=/usr --disable-nls \
|
|
--with-system-readline \
|
|
--with-python=/usr/bin/python3 \
|
|
--with-guile=guile-2.0 \
|
|
--with-system-gdbinit=/etc/gdb/gdbinit
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
# install "custom" system gdbinit
|
|
install -dm755 $pkgdir/etc/gdb
|
|
touch $pkgdir/etc/gdb/gdbinit
|
|
|
|
# resolve conflicts with binutils
|
|
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
|
|
}
|