2018-02-10 11:48:31 +01:00
|
|
|
VERSION="4.4.18"
|
2017-12-09 21:51:48 +01:00
|
|
|
SRCDIR="bash-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="https://ftp.gnu.org/gnu/bash/"
|
2018-02-10 11:48:31 +01:00
|
|
|
SHA256SUM="604d9eec5e4ed5fd2180ee44dd756ddca92e0b6aa4217bbab2b6227380317f23"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="ncurses readline"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
prepare() {
|
2018-05-14 00:01:00 +02:00
|
|
|
apply_patches
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1" --without-bash-malloc --with-installed-readline
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
|
|
ln -sv bash "$DEPLOY/bin/sh"
|
|
|
|
|
2018-02-15 23:47:54 +01:00
|
|
|
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$DEPLOY"
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">bash-[0-9.]*tar.gz<" | \
|
|
|
|
sed 's/>bash-//g' | sed 's/.tar.gz<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|