80 lines
2.7 KiB
Bash
80 lines
2.7 KiB
Bash
# Template file for 'bash'
|
|
pkgname=bash
|
|
version=5.2.015
|
|
revision=1
|
|
_bash_distver=${version%.*}
|
|
_bash_patchlevel=${version##*.}
|
|
_patchprefix="bash${_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"
|
|
make_check_target=tests
|
|
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}/bash/bash-${_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="a139c166df7ff4471c5e0733051642ee5556c1cc8a4a78f145583c5c81ab32fb
|
|
f42f2fee923bc2209f406a1892772121c467f44533bedfe00a176139da5d310a
|
|
45cc5e1b876550eee96f95bffb36c41b6cb7c07d33f671db5634405cd00fd7b8
|
|
6a090cdbd334306fceacd0e4a1b9e0b0678efdbbdedbd1f5842035990c8abaff
|
|
38827724bba908cf5721bd8d4e595d80f02c05c35f3dd7dbc4cd3c5678a42512
|
|
ece0eb544368b3b4359fb8464caa9d89c7a6743c8ed070be1c7d599c3675d357
|
|
d1e0566a257d149a0d99d450ce2885123f9995e9c01d0a5ef6df7044a72a468c
|
|
2500a3fc21cb08133f06648a017cebfa27f30ea19c8cbe8dfefdf16227cfd490
|
|
6b4bd92fd0099d1bab436b941875e99e0cb3c320997587182d6267af1844b1e8
|
|
f95a817882eaeb0cb78bce82859a86bbb297a308ced730ebe449cd504211d3cd
|
|
c7705e029f752507310ecd7270aef437e8043a9959e4d0c6065a82517996c1cd
|
|
831b5f25bf3e88625f3ab315043be7498907c551f86041fa3b914123d79eb6f4
|
|
2fb107ce1fb8e93f36997c8b0b2743fc1ca98a454c7cc5a3fcabec533f67d42c
|
|
094b4fd81bc488a26febba5d799689b64d52a5505b63e8ee854f48d356bc7ce6
|
|
3ef9246f2906ef1e487a0a3f4c647ae1c289cbd8459caa7db5ce118ef136e624
|
|
ef73905169db67399a728e238a9413e0d689462cb9b72ab17a05dba51221358a"
|
|
|
|
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="-DNON_INTERACTIVE_LOGIN_SHELLS -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
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|