Commit | Line | Data |
---|---|---|
6dca1d21 JB |
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 | |
582e5de1 JB |
8 | version=4.0.35 |
9 | release=1 | |
10 | source=(http://ftp.gnu.org/gnu/$name/$name-${version%.*}.tar.gz \ | |
11 | http://crux.nu/ports/crux-2.6/core/$name/$name-${version%.*}-001-0${version##*.}.patch.gz \ | |
6dca1d21 JB |
12 | profile) |
13 | ||
14 | build() { | |
582e5de1 | 15 | cd $name-${version%.*} |
6dca1d21 | 16 | |
582e5de1 JB |
17 | gunzip -c $SRC/$name-${version%.*}-001-0${version##*.}.patch.gz | patch -p0 |
18 | cat > config.cache <<EOF | |
6dca1d21 JB |
19 | bash_cv_sys_named_pipes=yes |
20 | bash_cv_job_control_missing=present | |
21 | EOF | |
22 | ||
23 | touch configure | |
24 | ./configure --build=$CHOST \ | |
25 | --host=$CTARGET \ | |
26 | --cache-file=config.cache \ | |
27 | --prefix=/usr \ | |
28 | --exec-prefix= \ | |
29 | --mandir=/usr/man \ | |
30 | --disable-nls \ | |
31 | --without-bash-malloc \ | |
32 | --with-curses | |
33 | make | |
34 | make DESTDIR=$PKG install | |
35 | ||
36 | rm -rf $PKG/usr/share $PKG/bin/bashbug $PKG/usr/man/man1/bashbug.1 | |
37 | install -D -m 644 $SRC/profile $PKG/etc/profile | |
38 | ln -sf bash $PKG/bin/sh | |
39 | ln -sf bash.1 $PKG/usr/man/man1/sh.1 | |
40 | } |