mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:17:14 +08:00
52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Maintainer: Drake Justice <djustice@chakraos.org>
|
|
|
|
pkgname=gdb
|
|
pkgver=7.10
|
|
pkgrel=2
|
|
pkgdesc="The GNU Debugger"
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/gdb/"
|
|
license=('GPL3')
|
|
depends=('ncurses' 'expat' 'python2' 'xz')
|
|
makedepends=('texinfo')
|
|
backup=('etc/gdb/gdbinit')
|
|
install=gdb.install
|
|
source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
|
|
md5sums=('2a35bac41fa8e10bf04f3a0dd7f7f363'
|
|
'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
|
|
}
|
|
|
|
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/python2 \
|
|
--with-system-gdbinit=/etc/gdb/gdbinit \
|
|
--without-guile
|
|
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,symcat}.h
|
|
rm ${pkgdir}/usr/share/info/bfd.info
|
|
rm "${pkgdir}/usr/include/plugin-api.h"
|
|
rm "${pkgdir}/usr/lib/libbfd.a"
|
|
rm "${pkgdir}/usr/lib/libopcodes.a"
|
|
}
|