Files
banan-os/ports/bash/build.sh
Bananymous bb170ba613 ports: Allow build scripts install to custom path
This will maybe allow packaging ports :)
2026-05-26 03:31:20 +03:00

23 lines
538 B
Bash
Executable File

#!/bin/bash ../install.sh
NAME='bash'
VERSION='5.2.37'
DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/bash/bash-$VERSION.tar.gz#9599b22ecd1d5787ad7d3b7bf0c59f312b3396d1e281175dd1f8a4014da621ff"
DEPENDENCIES=('ncurses')
CONFIG_SUB=('support/config.sub')
CONFIGURE_OPTIONS=(
'--disable-nls'
'--without-bash-malloc'
'--with-curses'
'bash_cv_unusable_rtsigs=no'
'bash_cv_signal_vintage=posix'
'CFLAGS=-std=c17'
'CFLAGS_FOR_BUILD=-std=c17'
)
post_install() {
if [ ! -L $DESTDIR/usr/bin/sh ]; then
ln -s bash $DESTDIR/usr/bin/sh
fi
}