opt/gdb/Pkgfile

47 lines
1.3 KiB
Plaintext
Raw Normal View History

# Description: The GNU Debugger (GDB)
2021-01-29 13:30:46 +01:00
# URL: https://www.gnu.org/software/gdb
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: expat libmpfr readline texinfo xz zlib
name=gdb
2023-12-03 12:35:35 +01:00
version=14.1
release=1
2023-02-20 11:19:28 +01:00
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
2021-01-29 13:30:46 +01:00
cd $name-$version
2021-01-29 13:30:46 +01:00
sed '/^SUBDIRS/s/doc//' -i gdb/Makefile.in
2021-01-29 13:30:46 +01:00
mkdir build && cd build
2020-02-10 22:59:47 +01:00
2021-01-29 13:30:46 +01:00
../configure \
--prefix=/usr \
2023-02-20 11:19:28 +01:00
--enable-lto \
--with-pkgversion="$(crux | awk '{ print $1 " " $3 }')" \
--with-bugurl="https://crux.nu/bugs" \
--with-system-{readline,zlib} \
--with-python=/usr/bin/python3 \
--enable-tui \
--enable-64-bit-bfd \
--without-zlib \
2023-02-20 11:19:28 +01:00
--disable-{binutils,etc,gas,gold,gprof,ld,readline} \
--disable-werror \
--disable-nls
2021-01-29 13:30:46 +01:00
make
make DESTDIR=$PKG install
2015-08-19 15:01:43 +02:00
export PYTHONHASHSEED=0
/usr/bin/python3 -m compileall -d /usr/share/gdb/python $PKG/usr/share/gdb/python
/usr/bin/python3 -O -m compileall -d /usr/share/gdb/python $PKG/usr/share/gdb/python
2021-01-29 13:30:46 +01: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
rm -r $PKG/usr/{include,share/info}
find $PKG \( -name '*.la' -o \
-name '*.a' \) \
-type f -delete
}