bash: cross build support.

This commit is contained in:
Juan RP 2013-02-07 00:41:13 +01:00
parent f790c9ab23
commit e409d2ea2d

View file

@ -3,7 +3,7 @@ pkgname=bash
_bash_distver=4.2
_bash_patchlevel=042
version=${_bash_distver}.${_bash_patchlevel}
revision=2
revision=3
#version=${_bash_distver}
wrksrc=${pkgname}-${_bash_distver}
build_style=gnu-configure
@ -17,6 +17,8 @@ configure_args="--without-bash-malloc --with-curses --with-installed-readline
--enable-select --enable-net-redirections --enable-restricted --enable-readline"
register_shell="/bin/bash"
makedepends="readline-devel bison"
crossmakedepends="readline-devel"
conflicts="chroot-bash>=0"
short_desc="The GNU Bourne Again Shell"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnu.org/software/bash/bash.html"
@ -24,8 +26,6 @@ license="GPL-3"
distfiles="http://ftp.gnu.org/gnu/bash/bash-${_bash_distver}.tar.gz"
checksum=a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8
conflicts="chroot-bash>=0"
pre_configure() {
local url="http://ftp.gnu.org/gnu/bash/bash-${_bash_distver}-patches"
local ver=$(echo ${_bash_distver}|sed "s|\.||g")