2006-02-23 17:10:28 +00:00
|
|
|
# Description: The GNU Debugger (GDB)
|
2021-01-29 12:30:46 +00:00
|
|
|
# URL: https://www.gnu.org/software/gdb
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: libmpfr readline xz zlib expat
|
2006-02-23 17:10:28 +00:00
|
|
|
|
|
|
|
name=gdb
|
2021-09-13 22:48:27 +02:00
|
|
|
version=11.1
|
2016-01-13 00:55:11 +01:00
|
|
|
release=1
|
2017-03-13 18:57:59 +11:00
|
|
|
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
|
2006-02-23 17:10:28 +00:00
|
|
|
|
|
|
|
build() {
|
2021-01-29 12:30:46 +00:00
|
|
|
cd $name-$version
|
2019-03-18 22:50:01 +01:00
|
|
|
|
2021-01-29 12:30:46 +00:00
|
|
|
sed '/^SUBDIRS/s/doc//' -i gdb/Makefile.in
|
2019-03-18 22:50:01 +01:00
|
|
|
|
2021-01-29 12:30:46 +00:00
|
|
|
mkdir build && cd build
|
2020-02-10 22:59:47 +01:00
|
|
|
|
2021-01-29 12:30:46 +00:00
|
|
|
../configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-system-{readline,zlib}
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2015-08-19 15:01:43 +02:00
|
|
|
|
2021-01-29 12:30:46 +00:00
|
|
|
install -d $PKG/usr/share/man/man{1,5}
|
|
|
|
install -m 0644 ../gdb/doc/*.1 $PKG/usr/share/man/man1
|
|
|
|
install -m 0644 ../gdb/doc/*.5 $PKG/usr/share/man/man5
|
2015-08-19 15:01:43 +02:00
|
|
|
|
2021-01-29 12:30:46 +00:00
|
|
|
rm -r $PKG/usr/{include,lib/{*.a,*.la}}
|
|
|
|
rm -r $PKG/usr/share/{info,locale}
|
2006-02-23 17:10:28 +00:00
|
|
|
}
|