blob: 1ee19d2899d7e0774a0b67acbf5bac82d8426380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
description="An sh-compatible command language interpreter"
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
depends=(ncurses readline)
name=bash
version=4.1.9
release=1
source=(http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz bash-4.1-001-009.patch.gz profile)
build ()
{
cd $name-4.1;
gunzip -c $SRC/$name-4.1-001-009.patch.gz | patch -p0;
./configure \
${CHOST:+--build=${CHOST}} \
${CTARGET:+--host=${CTARGET}} \
--prefix=$prefix \
--exec-prefix= \
--mandir=$mandir \
$(use_with nls) \
--with-curses \
--with-installed-readline;
make -j1;
# FIXME: bash will maybe not be the /bin/sh shell for Nutritive…
# +++++ so, be prepared to remove the /bin/sh link, and to add
# +++++ a /usr/bin/bash -> /bin/bash link. (think to replace the
# +++++ exec-prefix on the ./configure, too)
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 -s bash $PKG/bin/sh;
ln -s bash.1 $PKG/usr/man/man1/sh.1
}
|