LFS-PKGBUILDs/lfs/bash-5.2.32.PKGBUILD
2025-03-14 01:49:41 -04:00

42 lines
914 B
Plaintext

pkgname=bash
_basever=5.2
_patchlevel=32
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=("f204835b2e06c06e37b5ad776ff907f4")
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"
}