pkgname=gdb version=17.2 build_no=1 upstream="https://ftp.gnu.org/gnu/gdb/gdb-${version}.tar.gz" function do_configure { mkdir -p build/ cd build/ conf_flags=( --prefix=/usr --target=${DISTRO_TC} --host=${DISTRO_TC} --enable-host-pie --enable-host-shared ) ../configure "${conf_flags[@]}" } function do_build { cd build/ make -j$(nproc) } function do_install { echo "Test" # cd build/ # make DESTDIR=${DESTDIR} install }