2019-01-09 15:29:22 +01:00
|
|
|
VERSION="5.0"
|
2017-12-09 21:51:48 +01:00
|
|
|
SRCDIR="bash-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="https://ftp.gnu.org/gnu/bash/"
|
2019-01-09 15:29:22 +01:00
|
|
|
SHA256SUM="b4a80f2ac66170b2913efbfb9f2594f1f76c7b1afd11f799e22035d63077fb4d"
|
2019-02-27 14:22:03 +01:00
|
|
|
DEPENDS="ncurses-dev readline-dev crt-dev"
|
|
|
|
SUBPKG="bash bash-dev"
|
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"
|
2019-02-03 17:13:28 +01:00
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$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"
|
2019-02-27 14:22:03 +01:00
|
|
|
}
|