pkgname=bash pkgver=5.2.37 pkgrel=1 pkgdesc="The GNU Bourne Again shell" arch=('x86_64') url="https://www.gnu.org/software/bash/" license=('GPL-3.0-or-later') groups=('base') depends=('glibc' 'readline' 'ncurses') backup=(etc/{bashrc,profile,shells} etc/profile.d/{dircolors,extrapaths,i18n,readline,umask}.sh etc/skel/.bash{rc,_profile,_logout}) source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz bashrc dircolors.sh extrapaths.sh i18n.sh profile readline.sh shells skel_bash_logout skel_bash_profile skel_bashrc umask.sh) sha256sums=(9599b22ecd1d5787ad7d3b7bf0c59f312b3396d1e281175dd1f8a4014da621ff 0cddbd9fc0fb64b7f93af48f87001693b8b50d8842658d4065c2e64e73cc8911 22659ffdfdc5cd9d28c1e12aad5616274bd2ffec7628c4f61f3bb1df9193de64 33d9fe6dcff46760cd8a1f900cbc8b25b648261bee66af0caccdcaa1043d2623 51bf7ef39df2c6fb9e457c73121bff62dac97253bcd79aae510af53ac3b0e9d6 dfbc8fa0d662e080c77f63e8eb617a83e32eb608ee832f97e9f2632fca941cab 30d33e050788fac3796179fc6ecea9f84d28115c232c2bf36b15fce1de1e37e0 1db1de0b837e46cac525afad0b39b41e730114294b209a023f2e7100a3efd2f7 eddf3e86e4894a58a0d1f17be9a0ce1af3d5cd7470ade673577bdc1821961b38 a869ca7bf0095f42f55e993db09764333631ef2f146fcc3118b94198a27bfa87 8d4f3d69adb535ba14758c17334a6c143aab21148e1f9d62cb6e16368ea4fddf 8074806e68eef550b491e024d9420e8c0345dfcdd41da1eb6fad023cdb139177) build() { cd ${pkgname}-${pkgver} local configure_args=( --without-bash-malloc --with-installed-readline --docdir=/usr/share/doc/${pkgname}-${pkgver} ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install ln -s bash ${pkgdir}/usr/bin/sh install --directory --mode=0755 --owner=root --group=root ${pkgdir}/etc/profile.d for file in {dircolors,extrapaths,readline,umask,i18n}.sh do install -vm644 ${srcdir}/${file} ${pkgdir}/etc/profile.d/${file} done install -vDm644 ${srcdir}/bashrc ${pkgdir}/etc/bashrc install -vDm644 ${srcdir}/profile ${pkgdir}/etc/profile install -vDm644 ${srcdir}/shells ${pkgdir}/etc/shells for file_skel in skel_bash{rc,_profile,_logout} do install -vDm644 ${srcdir}/${file_skel} ${pkgdir}/etc/skel/.${file_skel#*_} done dircolors -p > ${pkgdir}/etc/dircolors }