summaryrefslogtreecommitdiff
path: root/gdb/Pkgfile
blob: b901d49fe6c8f4b18129f64ab7c49dd8b30a2b0a (plain)
    1 # Description: The GNU Debugger (GDB)
    2 # URL: https://www.gnu.org/software/gdb
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: expat libmpfr readline texinfo xz zlib
    5 
    6 name=gdb
    7 version=12.1
    8 release=1
    9 source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
   10   readline.patch)
   11 
   12 build() {
   13   cd $name-$version
   14 
   15   patch -Np1 -i $SRC/readline.patch
   16 
   17   sed '/^SUBDIRS/s/doc//' -i gdb/Makefile.in
   18 
   19   mkdir build && cd build
   20 
   21   ../configure \
   22     --prefix=/usr \
   23     --with-pkgversion="$(crux | awk '{ print $1 " " $3 }')" \
   24     --with-bugurl="https://crux.nu/bugs" \
   25     --with-system-{readline,zlib} \
   26     --with-python=/usr/bin/python3 \
   27     --enable-tui \
   28     --enable-64-bit-bfd \
   29     --without-zlib \
   30     --disable-readline \
   31     --disable-werror \
   32     --disable-nls
   33   make
   34   make DESTDIR=$PKG install
   35 
   36   export PYTHONHASHSEED=0
   37   /usr/bin/python3 -m compileall -d /usr/share/gdb/python $PKG/usr/share/gdb/python
   38   /usr/bin/python3 -O -m compileall -d /usr/share/gdb/python $PKG/usr/share/gdb/python
   39 
   40   install -d $PKG/usr/share/man/man{1,5}
   41   install -m 0644 ../gdb/doc/*.1 $PKG/usr/share/man/man1
   42   install -m 0644 ../gdb/doc/*.5 $PKG/usr/share/man/man5
   43 
   44   rm -r $PKG/usr/{include,share/info}
   45   find $PKG \( -name '*.la' -o \
   46     -name '*.a' \) \
   47     -type f -delete
   48 }

Generated by cgit