Files
LFS-PKGBUILDs/lfs/bash-5.2.37.PKGBUILD
2025-03-25 13:33:10 -04:00

42 lines
914 B
Plaintext

pkgname=bash
_basever=5.2
_patchlevel=37
pkgver=${_basever}.${_patchlevel}
pkgdesc='The GNU Bourne Again shell'
license=('GPL-3.0-or-later')
url='https://www.gnu.org/software/bash'
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("9c28f21ff65de72ca329c1779684a972")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr \
--without-bash-malloc \
--with-installed-readline \
bash_cv_strtold_broken=no \
--docdir=/usr/share/doc/bash-${pkgver}
make
}
src_check() {
chown -R leaf .
su -s /usr/bin/expect leaf << "EOF"
set timeout -1
spawn make tests
expect eof
lassign [wait] _ _ _ value
exit $value
EOF
#chown -R root .
}
src_install() {
make DESTDIR="${pkgdir}" install
ln -sv bash "${pkgdir}/usr/bin/sh"
}