update to 12.3: bash

This commit is contained in:
wyj
2025-03-25 13:33:10 -04:00
parent ed468a860d
commit b9928fc5bf
+41
View File
@@ -0,0 +1,41 @@
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"
}