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

packager="Grat-OS Team"
maintainer="Grat-OS Team"

name=bash
version=5.3
release=1

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

build() {
  cd bash-$version
  
  ./configure --prefix=/usr \
              --exec-prefix=/usr \
              --bindir=/usr/bin \
              --libdir=/usr/lib \
              --docdir=/usr/share/doc/bash-$version \
              --without-bash-malloc \
              --with-installed-readline

  make
  make DESTDIR=$PKG install

  ln -sf bash $PKG/usr/bin/sh
}
