| 1 | # Description: An sh-compatible command language interpreter |
| 2 | # URL: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org |
| 5 | # Depends on: ncurses |
| 6 | |
| 7 | name=bash |
| 8 | version=4.1 |
| 9 | release=1 |
| 10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \ |
| 11 | profile) |
| 12 | |
| 13 | build() { |
| 14 | cd $name-$version |
| 15 | |
| 16 | cat > config.cache <<EOF |
| 17 | bash_cv_sys_named_pipes=yes |
| 18 | bash_cv_job_control_missing=present |
| 19 | EOF |
| 20 | |
| 21 | touch configure |
| 22 | ./configure --build=$CHOST \ |
| 23 | --host=$CTARGET \ |
| 24 | --cache-file=config.cache \ |
| 25 | --prefix=/usr \ |
| 26 | --exec-prefix= \ |
| 27 | --mandir=/usr/man \ |
| 28 | --disable-nls \ |
| 29 | --without-bash-malloc \ |
| 30 | --with-curses |
| 31 | make |
| 32 | make DESTDIR=$PKG install |
| 33 | |
| 34 | rm -rf $PKG/usr/share $PKG/bin/bashbug $PKG/usr/man/man1/bashbug.1 |
| 35 | install -D -m 644 $SRC/profile $PKG/etc/profile |
| 36 | ln -sf bash $PKG/bin/sh |
| 37 | ln -sf bash.1 $PKG/usr/man/man1/sh.1 |
| 38 | } |