diff --git a/lfs-12.2-systemd/bash-5.2.32.PKGBUILD b/lfs-12.2-systemd/bash-5.2.32.PKGBUILD new file mode 100644 index 0000000..39693c2 --- /dev/null +++ b/lfs-12.2-systemd/bash-5.2.32.PKGBUILD @@ -0,0 +1,41 @@ +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 ${DIST_DIR}/${pkgname}-${pkgver}/${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" +} +