CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[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
83e7e2d0 4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
6dca1d21
JB
5# Depends on: ncurses
6
7name=bash
3419b291 8version=4.1.2
582e5de1 9release=1
92352b03 10source=(http://ftp.gnu.org/gnu/$name/$name-${version%.*}.tar.gz \
3419b291 11 $name-4.1-001-002.patch.gz profile)
6dca1d21
JB
12
13build() {
92352b03 14 cd $name-${version%.*}
6dca1d21 15
582e5de1 16 cat > config.cache <<EOF
6dca1d21
JB
17bash_cv_sys_named_pipes=yes
18bash_cv_job_control_missing=present
19EOF
20
3419b291
VM
21 gunzip -c $SRC/$name-4.1-001-002.patch.gz | patch -p0
22
6dca1d21
JB
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}