# Compiling Time: 0.47 SBU
# Maintainer: James Buren <ryuo@frugalware.org>
# Contributor: Miklos Vajna <vmiklos@frugalware.org>

pkgname=bash
pkgver=5.1.8
pkgrel=1
pkgdesc="The GNU Bourne Again shell"
url="http://tiswww.case.edu/php/chet/bash/bashtop.html"
dlurl="http://ftp.gnu.org/gnu/$pkgname"
backup=(etc/{profile,shells,skel/.bashrc})
depends=('glibc>=2.29-5' 'readline>=8.1')
groups=('base' 'core')
archs=('x86_64')
_F_archive_grepv="alpha\|beta\|rc"
up2date="Flasttar $dlurl"
source=("$dlurl/$pkgname-$pkgver.tar.gz" profile shells bashrc system.bashrc)
signatures=("${source[0]}.sig" '' '' '' '')
Fconfopts+="	--with-curses \
		--enable-readline \
		--with-installed-readline \
		--with-bash-malloc=no \
		--enable-debugger"

build()
{
	_bashconfig=(-DSYS_BASHRC=\'\"/etc/bashrc\"\' -DRECYCLES_PIDS)
	export CFLAGS="${CFLAGS} ${_bashconfig[@]}"
	Fcd

	Fbuild

	Fmv /usr/bin /
	Ffile profile shells /etc/
	Ffile bashrc /etc/skel/.bashrc
	Ffile system.bashrc /etc/bashrc
	Fln bash /bin/sh
}

# optimization OK
