32 lines
958 B
Python
32 lines
958 B
Python
version = "5.3"
|
|
revision = 1
|
|
description = "GNU Bourne-Again SHell"
|
|
license = "GPL-3.0-or-later"
|
|
url = "https://www.gnu.org/software/bash/"
|
|
source = tarball(
|
|
url=f"https://ftp.gnu.org/gnu/bash/bash-{version}.tar.gz",
|
|
sha256="0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba",
|
|
)
|
|
host_deps = ["autoconf", "automake", "binutils", "gcc"]
|
|
deps = [profile["libc"], "ncurses", "readline"]
|
|
|
|
configure, build, install = autotools(
|
|
configure_args=[
|
|
"--without-bash-malloc",
|
|
"--disable-nls",
|
|
"--with-curses",
|
|
"--enable-readline",
|
|
"--with-installed-readline",
|
|
],
|
|
configure_env={
|
|
"bash_cv_termcap_lib": "libtinfo",
|
|
"CFLAGS": profile["cflags"] + " -std=gnu17",
|
|
"CFLAGS_FOR_BUILD": profile["host_cflags"] + " -std=gnu17",
|
|
},
|
|
# HACK: Fixes cross-compile issues
|
|
build_args=[
|
|
"READLINE_LDFLAGS=-L=/usr/lib",
|
|
"HISTORY_LDFLAGS=-L=/usr/lib",
|
|
],
|
|
)
|