blob: af877d0b5b10ac7f33c08c7a2a6f07d75aab1e8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Joey Dumont <joey.dumont@gmail.com>
_target=mips64-elf
pkgname=$_target-gdb
pkgver=16.3
pkgrel=1
pkgdesc="The GNU Debugger (${_target})"
arch=(i686 x86_64)
url='http://www.gnu.org/software/gdb/'
license=(GPL3)
depends=(mpfr gdb-common guile libelf)
makedepends=(texinfo python)
options=(!emptydirs)
source=("ftp://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz")
sha256sums=('bcfcd095528a987917acf9fff3f1672181694926cc18d609c99d0042c00224c5')
prepare() {
cd "${srcdir}/gdb-${pkgver}"
mkdir "${srcdir}/build-gdb"
# hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}
build() {
cd "${srcdir}/build-gdb"
"${srcdir}"/gdb-${pkgver}/configure --prefix=/usr \
--target=${_target} \
--disable-nls \
--with-python=/usr/bin/python \
--enable-tui \
--with-system-readline \
--with-sysroot=/usr/${_target} \
--enable-lto \
--disable-sim
make
}
package() {
cd build-gdb
make DESTDIR="$pkgdir" install
# fix conflicts with gdb
rm -r "$pkgdir/usr/include/gdb"
rm -r "$pkgdir/usr/share/info"
# comes from gdb-
rm -r "$pkgdir/usr/share/gdb"
}
|