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() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/configure --prefix="" --host="$TARGET" --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"
|
|
|
|
local DEVDEPLOY="$3"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
|
|
|
2018-02-15 14:24:53 +01:00
|
|
|
strip_files ${DEPLOY}/bin/bash
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
ln -sv bash "$DEPLOY/bin/sh"
|
|
|
|
|
2018-02-10 01:57:53 +01:00
|
|
|
rm -r "$DEPLOY/share"
|
|
|
|
rm "$DEPLOY/bin/bashbug"
|
2018-01-18 21:22:09 +01:00
|
|
|
|
2018-02-15 23:47:54 +01:00
|
|
|
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$DEPLOY"
|
2018-02-10 01:57:53 +01:00
|
|
|
|
|
|
|
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|