# URL: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
-# Depends on: ncurses
+# Depends on: ncurses readline
name=bash
-version=4.2.10
+version=4.2.37
release=1
-source=(http://ftp.gnu.org/gnu/$name/$name-${version%.*}.tar.gz \
+source=(http://ftp.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz \ \
$name-$version.patch.gz profile)
build() {
- cd $name-${version::3}
+ cd $name-${version:0:3}
gunzip -c $SRC/$name-$version.patch.gz | patch -p0
cat > config.cache <<EOF
-bash_cv_sys_named_pipes=yes
+ac_cv_func_mmap_fixed_mapped=yes
+ac_cv_func_strcoll_works=yes
+ac_cv_func_working_mktime=yes
+bash_cv_func_sigsetjmp=present
+bash_cv_getcwd_malloc=yes
bash_cv_job_control_missing=present
+bash_cv_printf_a_format=yes
+bash_cv_sys_named_pipes=present
+bash_cv_ulimit_maxfds=yes
+bash_cv_under_sys_siglist=yes
+bash_cv_unusable_rtsigs=no
+gt_cv_int_divbyzero_sigfpe=yes
EOF
- touch configure
./configure --build=$CHOST \
--host=$CTARGET \
- --cache-file=config.cache \
--prefix=/usr \
--exec-prefix= \
--mandir=/usr/man \
--disable-nls \
--without-bash-malloc \
- --with-curses
+ --with-curses \
+ --with-installed-readline \
+ --cache-file=config.cache
+
make
install -D -m 755 bash $PKG/bin/bash
install -D -m 644 doc/bash.1 $PKG/usr/man/man1/bash.1