pkgname=tar version=1.35 build_no=1 upstream="https://ftp.gnu.org/gnu/tar/tar-${version}.tar.gz" function do_configure { mkdir build/ cd build/ conf_flags=( --prefix=/usr --host=${DISTRO_TC} --disable-nls --disable-rpath --without-selinux ) export FORCE_UNSAFE_CONFIGURE=1 ../configure "${conf_flags[@]}" } function do_build { cd build/ make -j$(nproc) } function do_install { cd build/ make DESTDIR=${DESTDIR} install }