opt/gdb/Pkgfile
Tim Biermann 8ffac40103 Updated Pkgfile, read comment for details
- enables python support. Since python is in core, I see no reason to
   not enable it by default.
 - enabled plugins
 - cleaned up the "cleaning up" part of the Pkgfile
 - now supplies our bug tracker URL, people should report issues there
   first
2022-03-13 10:05:17 +01:00

46 lines
1.2 KiB
Plaintext

# Description: The GNU Debugger (GDB)
# URL: https://www.gnu.org/software/gdb
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: expat libmpfr readline xz zlib
name=gdb
version=11.2
release=2
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
sed '/^SUBDIRS/s/doc//' -i gdb/Makefile.in
mkdir build && cd build
../configure \
--prefix=/usr \
--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 \
--disable-readline \
--disable-werror \
--disable-nls
make
make DESTDIR=$PKG install
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
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
rm -r $PKG/usr/{include,share/info}
find $PKG \( -name '*.la' -o \
-name '*.a' \) \
-type f -delete
}