89 lines
3.1 KiB
Bash
89 lines
3.1 KiB
Bash
# Template file for 'bash'
|
|
pkgname=bash
|
|
version=5.1.016
|
|
revision=1
|
|
_bash_distver=${version%.*}
|
|
_bash_patchlevel=${version##*.}
|
|
_patchprefix="bash${_bash_distver/./}"
|
|
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"
|
|
checkdepends="perl"
|
|
short_desc="GNU Bourne Again Shell"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.gnu.org/software/bash/bash.html"
|
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${_bash_distver}.tar.gz"
|
|
|
|
_url="${GNU_SITE}/bash/bash-${_bash_distver}-patches"
|
|
for _p in $(seq -w 001 $_bash_patchlevel); do
|
|
distfiles+=" ${_url}/${_patchprefix}-${_p}"
|
|
skip_extraction+=" ${_patchprefix}-${_p}"
|
|
done
|
|
unset _url
|
|
unset _p
|
|
|
|
checksum="cc012bc860406dcf42f64431bcd3d2fa7560c02915a601aba9cd597a39329baa
|
|
ebb07b3dbadd98598f078125d0ae0d699295978a5cdaef6282fe19adef45b5fa
|
|
15ea6121a801e48e658ceee712ea9b88d4ded022046a6147550790caf04f5dbe
|
|
22f2cc262f056b22966281babf4b0a2f84cb7dd2223422e5dcd013c3dcbab6b1
|
|
9aaeb65664ef0d28c0067e47ba5652b518298b3b92d33327d84b98b28d873c86
|
|
cccbb5e9e6763915d232d29c713007a62b06e65126e3dd2d1128a0dc5ef46da5
|
|
75e17d937de862615c6375def40a7574462210dce88cf741f660e2cc29473d14
|
|
acfcb8c7e9f73457c0fb12324afb613785e0c9cef3315c9bbab4be702f40393a
|
|
f22cf3c51a28f084a25aef28950e8777489072628f972b12643b4534a17ed2d1
|
|
e45cda953ab4b4b4bde6dc34d0d8ca40d1cc502046eb28070c9ebcd47e33c3ee
|
|
a2c8d7b2704eeceff7b1503b7ad9500ea1cb6e9393faebdb3acd2afdd7aeae2a
|
|
58191f164934200746f48459a05bca34d1aec1180b08ca2deeee3bb29622027b
|
|
10f189c8367c4a15c7392e7bf70d0ff6953f78c9b312ed7622303a779273ab98
|
|
c7acb66df435d284304c16ca83a5265f9edd9368612095b01a733d45c77ed5ad
|
|
6a4ee0c81b437b96279a792c1efcec4ba56f009195a318083db6b53b096f83d0
|
|
1b37692ef1f6cc3dcec246773443276066e6b1379868f8c14e01f4dfd4df80f0
|
|
8899144f76a5db1fb41a89ed881c9f19add95728dd71db324f772ef225c5384f"
|
|
|
|
make_dirs="/etc/bash/bashrc.d 755 root root"
|
|
conflicts="chroot-bash>=0"
|
|
register_shell="/usr/bin/bash /bin/bash"
|
|
|
|
alternatives="
|
|
sh:sh:/usr/bin/bash
|
|
sh:sh.1:/usr/share/man/man1/bash.1"
|
|
|
|
CFLAGS="-DSYS_BASHRC='\"/etc/bash/bashrc\"'"
|
|
|
|
post_patch() {
|
|
local _p
|
|
cd ${wrksrc}
|
|
for _p in $(seq -w 001 ${_bash_patchlevel}); do
|
|
msg_normal " Applying patch ${_patchprefix}-${_p}.\n"
|
|
patch -sNp0 -i ${XBPS_SRCDISTDIR}/bash-$version/${_patchprefix}-${_p}
|
|
done
|
|
}
|
|
|
|
do_check() {
|
|
# when xbps-src is run from interactive shell, this tests receives SIGTTIN,
|
|
# and suspends xbps-src
|
|
sed -i tests/read2.sub -e '/read -t 2 a < \/dev\/tty/,/echo $a/ d'
|
|
sed -i tests/read.right -e '/timeout 1: ok/,+1 d'
|
|
sed -i tests/read.right -e '/read2.sub: line 36: read:/s/ 36:/ 27:/'
|
|
make tests
|
|
}
|
|
|
|
post_install() {
|
|
rm -r ${DESTDIR}/usr/share/doc
|
|
ln -s bash ${DESTDIR}/usr/bin/rbash
|
|
vinstall ${FILESDIR}/bashrc 644 etc/bash
|
|
vinstall ${FILESDIR}/bash.sh 644 etc/profile.d
|
|
}
|
|
|
|
bash-devel_package() {
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/bash
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|