rules: bash: add rule to compile/add bash.

This commit is contained in:
Pedro Gonçalves 2019-07-25 18:29:15 +01:00
parent 5003698147
commit 608631f9f0

45
rules/bash/default.bash Normal file
View File

@ -0,0 +1,45 @@
version=\
(
"4.4.18"
)
url=\
(
"http://ftp.gnu.org/gnu/bash/bash-$version.tar.gz"
)
md5=\
(
'518e2c187cc11a17040f0915dddce54e'
)
maintainer=\
(
'Pedro Gonçalves <pedro@fe.up.pt>'
)
configure()
{
./configure \
--prefix=${cfg_dir_rootfs}/usr \
--host=${cfg_target_canonical} \
--bindir=${cfg_dir_toolchain}/bin \
--without-bash-malloc
}
build()
{
$cmd_make VERBOSE=1
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_cp bash ${cfg_dir_rootfs}/usr/bin
$cmd_cp bashversion ${cfg_dir_rootfs}/usr/bin
}