2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-2020 Team LibreELEC
|
|
|
|
# Copyright (C) 2020-present 351ELEC (https://github.com/351ELEC)
|
2022-03-16 22:03:28 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="bash"
|
|
|
|
PKG_VERSION="5.1.16"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="http://www.gnu.org/software/bash/"
|
2022-03-16 22:03:28 +00:00
|
|
|
PKG_URL="http://ftpmirror.gnu.org/bash/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
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"
|
2022-03-16 22:03:28 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|