# Template file for 'bash' pkgname=bash version=5.3 revision=2 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 " license="GPL-3.0-or-later" homepage="https://www.gnu.org/software/bash/bash.html" distfiles="${GNU_SITE}/bash/bash-${version}.tar.gz" checksum=0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba 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="-DSSH_SOURCE_BASHRC -DNON_INTERACTIVE_LOGIN_SHELLS -DSYS_BASHRC='\"/etc/bash/bashrc\"'" 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 } }