mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 04:37:19 +08:00
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# $Id: PKGBUILD 77190 2010-04-11 11:51:03Z allan $
|
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
pkgname=gdb
|
|
pkgver=7.1
|
|
pkgrel=2
|
|
pkgdesc="The GNU Debugger"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnu.org/software/gdb/"
|
|
license=('GPL3')
|
|
depends=('ncurses' 'expat' 'python')
|
|
makedepends=('texinfo')
|
|
backup=('etc/gdb/gdbinit')
|
|
options=('!libtool')
|
|
install=gdb.install
|
|
source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.bz2
|
|
tui-no-gdbarch.patch)
|
|
md5sums=('21dce610476c054687b52770d2ddc657'
|
|
'e2f3f6cb11d72e3727ed4f7c49ea395f')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
patch -Np1 -i $srcdir/tui-no-gdbarch.patch
|
|
|
|
./configure --prefix=/usr --disable-nls \
|
|
--with-system-readline \
|
|
--with-system-gdbinit=/etc/gdb/gdbinit
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
# install "custom" system gdbinit
|
|
install -dm755 $pkgdir/etc/gdb
|
|
touch $pkgdir/etc/gdb/gdbinit
|
|
|
|
# resolve conflicts with binutils
|
|
rm -f ${pkgdir}/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h
|
|
rm -f ${pkgdir}/usr/lib/{libiberty,libbfd,libopcodes}.a
|
|
rm -f ${pkgdir}/usr/share/info/{bfd.info,configure.info,standards.info}
|
|
}
|