forked from Andy-Python-Programmer/aero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash
30 lines (25 loc) · 788 Bytes
/
bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name=bash
version=5.2.21
revision=1
tarball_url="https://ftp.gnu.org/gnu/bash/bash-${version}.tar.gz"
tarball_blake2b="6789c9a0d9eb1ad167d4199bf1438d77934a7bbeae9f9fdd7167cae006b17b3894852440248db1bb6e9cf6d930e8a18b6448a3bb4db8831b2e6d1445b56a2065"
source_hostdeps="autoconf automake libtool pkg-config"
imagedeps="gcc"
hostdeps="gcc autoconf automake libtool pkg-config"
deps="core-libs ncurses readline"
regenerate() {
AUTOHEADER=true autoreconf -fvi
}
build() {
autotools_configure \
--with-curses \
--enable-readline \
--without-bash-malloc \
--with-installed-readline="${sysroot}/usr/lib"
make -j${parallelism}
}
package() {
make install DESTDIR="${dest_dir}"
ln -s bash "${dest_dir}${prefix}"/bin/sh
post_package_strip
}