description="The Bash package contains the Bourne-Again SHell."
url='https://www.gnu.org/software/bash/'

maintainer="Brian Fox,Chet Ramey and many more"
packager="spiky <spiky@nutyx.org>"

makedepends=(ncurses readline sed)

name=bash
version=5.2.32
PKGMK_LOCALES=()

source=(http://ftp.gnu.org/gnu/bash/bash-$version.tar.gz)

build()
{
cd bash-$version

./configure --prefix=/usr \
--htmldir=/usr/share/doc/bash-$version \
--docdir=/usr/share/doc/bash-$version \
--without-bash-malloc \
--with-installed-readline

make
make DESTDIR=$PKG install

mkdir -p $PKG/bin
mv -vf $PKG/usr/bin/bash $PKG/bin
ln -s bash $PKG/bin/sh
}
