name=bash version=5.3p15 release=1 source="https://ftpmirror.gnu.org/gnu/${name}/${name}-${version%p*}.tar.gz $(b=${version%p*}; p=${version#*p}; i=1; while [ $i -le $p ]; do printf "https://ftpmirror.gnu.org/gnu/%s/%s-%s-patches/%s%s-%03d\n" \ "$name" "$name" "$b" "$name" "${b/./}" "$i" i=$((i+1)) done) bashrc" build_opt="--without-bash-malloc --with-installed-readline" patch_opt="-Np0" postbuild() { mkdir -p $PKG/bin mv $PKG/usr/bin/bash $PKG/bin install -d $PKG/etc install -m644 $SRC/bashrc $PKG/etc }