# Template file for 'oksh'
pkgname=oksh
version=0.5.9
revision=2
build_style=gnu-configure
short_desc="OpenBSD's version of ksh ported to Linux"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-3"
homepage="https://connochaetos.org/oksh/"
distfiles="http://www.connochaetos.org/oksh/oksh-${version}.tar.gz"
checksum=2323be6676c88bdc916dd206b9e9bd6c23bbada513edaf71dcfad97e8df3c952
register_shell="/bin/oksh"

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

do_install() {
	vbin ksh oksh
	vman ksh.1 oksh.1
}
