diff options
Diffstat (limited to 'bash/Pkgfile')
-rw-r--r-- | bash/Pkgfile | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/bash/Pkgfile b/bash/Pkgfile index 64b2c1d..9f16473 100644 --- a/bash/Pkgfile +++ b/bash/Pkgfile @@ -1,6 +1,6 @@ description="An sh-compatible command language interpreter" -packager="" -maintainer="CRUX System Team, core-ports at crux dot nu" +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) @@ -10,13 +10,23 @@ 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 --prefix=/usr --exec-prefix= --mandir=/usr/man --disable-nls --with-curses --with-installed-readline; - make -j1; - 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 + cd $name-4.1; + gunzip -c $SRC/$name-4.1-001-009.patch.gz | patch -p0; + ./configure \ + --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 } |