318df1f24f
Fetching the patches during the build is taking a lot of time, if - as in my case - the name resolution of ftp.gnu.org takes literally minutes with $XBPS_FETCH_CMD. If more patches for bash 4.3 are created, just add them to srcpkgs/bash/files and adjust _bash_patchlevel accordingly.
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template build file for 'bash'.
|
|
pkgname=bash
|
|
_bash_distver=4.3
|
|
_bash_patchlevel=048
|
|
# Dracut breaks with bash 4.4. See https://github.com/dracutdevs/dracut/issues/118
|
|
reverts=4.4.0_1
|
|
version=${_bash_distver}.${_bash_patchlevel}
|
|
revision=3
|
|
wrksrc=${pkgname}-${_bash_distver}
|
|
build_style=gnu-configure
|
|
configure_args="--without-bash-malloc --with-curses --without-installed-readline"
|
|
make_build_args="TERMCAP_LIB=${XBPS_CROSS_BASE}/usr/lib/libncursesw.a"
|
|
hostmakedepends="bison"
|
|
makedepends="ncurses-devel"
|
|
conflicts="chroot-bash>=0"
|
|
register_shell="/bin/bash"
|
|
short_desc="The GNU Bourne Again Shell"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gnu.org/software/bash/bash.html"
|
|
license="GPL-3"
|
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-${_bash_distver}.tar.gz"
|
|
CFLAGS="-DSYS_BASHRC='\"/etc/bash/bashrc\"'"
|
|
make_dirs="/etc/bash/bashrc.d 755 root root"
|
|
checksum=afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4
|
|
|
|
alternatives="
|
|
sh:sh:/usr/bin/bash
|
|
sh:sh.1:/usr/share/man/man1/bash.1"
|
|
|
|
pre_configure() {
|
|
local ver=$(echo ${_bash_distver}|sed "s|\.||g")
|
|
|
|
cd ${wrksrc}
|
|
for p in $(seq -w 001 ${_bash_patchlevel}); do
|
|
patch -sNp0 -i ${FILESDIR}/bash${ver}-${p}
|
|
msg_normal " Applying patch bash${ver}-$p.\n"
|
|
done
|
|
}
|
|
post_install() {
|
|
rm -r ${DESTDIR}/usr/share/doc
|
|
ln -s bash ${DESTDIR}/usr/bin/rbash
|
|
vmkdir /etc/bash
|
|
vinstall ${FILESDIR}/bashrc 644 etc/bash
|
|
vinstall ${FILESDIR}/bash.sh 644 etc/profile.d
|
|
}
|