CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
vim: updated to 7.3.154
[crossrootfs.git] / bash / Pkgfile
CommitLineData
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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on: ncurses
6
7name=bash
d591fcb7 8version=4.2.8
582e5de1 9release=1
92352b03 10source=(http://ftp.gnu.org/gnu/$name/$name-${version%.*}.tar.gz \
39571f6e 11 $name-$version.patch.gz profile)
6dca1d21
JB
12
13build() {
39571f6e
VM
14 cd $name-${version::3}
15
16 gunzip -c $SRC/$name-$version.patch.gz | patch -p0
6dca1d21 17
582e5de1 18 cat > config.cache <<EOF
6dca1d21
JB
19bash_cv_sys_named_pipes=yes
20bash_cv_job_control_missing=present
21EOF
22
3419b291
VM
23 gunzip -c $SRC/$name-4.1-001-002.patch.gz | patch -p0
24
6dca1d21
JB
25 touch configure
26 ./configure --build=$CHOST \
27 --host=$CTARGET \
28 --cache-file=config.cache \
29 --prefix=/usr \
30 --exec-prefix= \
31 --mandir=/usr/man \
32 --disable-nls \
33 --without-bash-malloc \
34 --with-curses
35 make
39571f6e
VM
36 install -D -m 755 bash $PKG/bin/bash
37 install -D -m 644 doc/bash.1 $PKG/usr/man/man1/bash.1
6dca1d21 38 install -D -m 644 $SRC/profile $PKG/etc/profile
39571f6e
VM
39
40 ln -s bash $PKG/bin/sh
41 ln -s bash.1 $PKG/usr/man/man1/sh.1
6dca1d21 42}