# Description: An sh-compatible command language interpreter
# 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, crux-arm at mikeux dot dyndns dot org
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
# Depends on: ncurses
name=bash
-version=4.1
+version=4.2.10
release=1
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
- profile)
+source=(http://ftp.gnu.org/gnu/$name/$name-${version%.*}.tar.gz \
+ $name-$version.patch.gz profile)
build() {
- cd $name-$version
+ cd $name-${version::3}
+
+ gunzip -c $SRC/$name-$version.patch.gz | patch -p0
cat > config.cache <<EOF
bash_cv_sys_named_pipes=yes
--without-bash-malloc \
--with-curses
make
- make DESTDIR=$PKG install
-
- rm -rf $PKG/usr/share $PKG/bin/bashbug $PKG/usr/man/man1/bashbug.1
+ install -D -m 755 bash $PKG/bin/bash
+ install -D -m 644 doc/bash.1 $PKG/usr/man/man1/bash.1
install -D -m 644 $SRC/profile $PKG/etc/profile
- ln -sf bash $PKG/bin/sh
- ln -sf bash.1 $PKG/usr/man/man1/sh.1
+
+ ln -s bash $PKG/bin/sh
+ ln -s bash.1 $PKG/usr/man/man1/sh.1
}