# Template file for 'dash'
pkgname=dash
version=0.5.11.5
revision=2
build_style=gnu-configure
hostmakedepends="bison"
# Añadir siguiente dependencia para habilitar edición e historial.
# Desabilitar la vinculación estática para que funcione.
#configure_args="--with-libedit"
#makedepends="libedit-devel"
short_desc="POSIX-compliant Unix shell, much smaller than GNU bash"
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
license="BSD-3-Clause"
homepage="http://gondor.apana.org.au/~herbert/dash/"
distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz"
checksum=db778110891f7937985f29bf23410fe1c5d669502760f584e54e0e7b29e123bd
register_shell="/usr/bin/sh /usr/bin/dash /bin/sh /bin/dash"

alternatives="
 sh:sh:/usr/bin/dash
 sh:sh.1:/usr/share/man/man1/dash.1"

# Construir vinculado estáticamente
do_configure() {
	./configure --prefix=/usr \
	--enable-static 
}

 post_install() {
	 vlicense COPYING
 }
