-53468bae20ceece01ff339ea2e2759eb bash-4.1-001-002.patch.gz
-9800d8724815fd84994d9be65ab5e7b8 bash-4.1.tar.gz
+005c1014acbcbb37f440d502f5a1cdfe bash-4.2.7.patch.gz
+3fb927c7c33022f1c327f14a81c0d4b0 bash-4.2.tar.gz
3fee206195d50dbd8a3560a8a77f341b profile
# Depends on: ncurses
name=bash
-version=4.1.2
+version=4.2.7
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-${version%.*}.tar.gz \
- $name-4.1-001-002.patch.gz profile)
+ $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
}