2008-10-14 16:41:37 +00:00
|
|
|
# Template build file for 'bash'.
|
|
|
|
pkgname=bash
|
2008-10-29 03:49:24 +00:00
|
|
|
# This matches current version + latest patchlevel
|
|
|
|
bash_distver=3.2
|
|
|
|
version=$bash_distver.039
|
|
|
|
wrksrc=$pkgname-$bash_distver
|
|
|
|
distfiles="http://ftp.gnu.org/pub/gnu/bash/$pkgname-$bash_distver.tar.gz"
|
2008-10-14 16:41:37 +00:00
|
|
|
build_style=gnu_configure
|
2008-10-29 03:49:24 +00:00
|
|
|
configure_args="--without-bash-malloc --with-curses
|
2008-11-26 14:45:20 +00:00
|
|
|
--bindir=$XBPS_DESTDIR/$pkgname-$version/bin
|
|
|
|
--with-installed-readline ac_cv_func_working_mktime=yes"
|
2008-10-14 16:41:37 +00:00
|
|
|
short_desc="The GNU Bourne Again Shell"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2008-10-22 00:43:51 +00:00
|
|
|
checksum=26c99025b59e30779300b68adb764f824974d267a4d7cc1b347d14a2393f9fb4
|
2008-10-14 16:41:37 +00:00
|
|
|
long_desc="
|
|
|
|
Bash is an sh-compatible shell that incorporates useful features from
|
|
|
|
the Korn shell (ksh) and C shell (csh). It is intended to conform to
|
|
|
|
the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.
|
|
|
|
|
|
|
|
It offers functional improvements over sh for both programming and
|
|
|
|
interactive use; these include command line editing, unlimited size
|
|
|
|
command history, job control, shell functions and aliases, indexed
|
|
|
|
arrays of unlimited size, and integer arithmetic in any base from two
|
|
|
|
to sixty-four. In addition, most sh scripts can be run by Bash without
|
|
|
|
modification."
|
2008-10-22 00:43:51 +00:00
|
|
|
|
2008-10-27 05:12:30 +00:00
|
|
|
base_chroot=yes
|
2008-11-26 14:45:20 +00:00
|
|
|
build_depends="bison-2.3 ncurses-5.6 readline-5.2"
|
|
|
|
run_depends="glibc-2.8 ncurses-5.6 readline-5.2"
|
2008-10-27 05:12:30 +00:00
|
|
|
|
2008-10-29 03:49:24 +00:00
|
|
|
pre_configure()
|
|
|
|
{
|
|
|
|
# Apply all patches for current (3.2) version.
|
|
|
|
local lpatch="039"
|
2008-11-21 15:03:04 +00:00
|
|
|
local URL="http://ftp.gnu.org/gnu/bash/bash-$bash_distver-patches"
|
2008-10-29 03:49:24 +00:00
|
|
|
|
|
|
|
for p in $(seq -w 001 $lpatch); do
|
|
|
|
if [ ! -f "$XBPS_SRCDISTDIR/bash32-$p" ]; then
|
|
|
|
msg_normal "Fetching $pkgname-$version patch: bash32-$p."
|
|
|
|
cd $XBPS_SRCDISTDIR && $fetch_cmd $URL/bash32-$p || bye 1
|
|
|
|
fi
|
|
|
|
msg_normal "Applying patch: bash32-$p."
|
|
|
|
cd $wrksrc && patch -s -p0 < $XBPS_SRCDISTDIR/bash32-$p || bye 1
|
|
|
|
done
|
|
|
|
}
|