distribution/packages/sysutils/bash/package.mk
fewtarius 8f0bfde778
* Python 3.11.7, GCC 13.2.0, LLVM 17.0.6, GLIB 2.78.3, GZdoom (Latest).
* Update misc packages for GCC 13.
* Thanks to @CoreELEC (Python 3), @ArchLinux (lrps2), and @AmberELEC (EmulationStation).
2023-12-27 01:31:28 +00:00

27 lines
852 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-2020 Team LibreELEC
# Copyright (C) 2020-present 351ELEC (https://github.com/351ELEC)
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="bash"
PKG_VERSION="5.2.21"
PKG_LICENSE="GPL"
PKG_SITE="http://www.gnu.org/software/bash/"
PKG_URL="http://ftp.gnu.org/gnu/bash/${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain ncurses readline"
PKG_LONGDESC="The GNU Bourne Again shell."
PKG_CONFIGURE_OPTS_TARGET="--with-curses \
--enable-readline \
--without-bash-malloc \
--with-installed-readline"
post_install() {
ln -sf bash ${INSTALL}/usr/bin/sh
mkdir -p ${INSTALL}/etc
cat <<EOF >${INSTALL}/etc/shells
/usr/bin/bash
/usr/bin/sh
EOF
chmod 4755 ${INSTALL}/usr/bin/bash
}