# Template file for 'mksh'
pkgname=mksh
version=R50c
revision=1
wrksrc=mksh
register_shell="/bin/mksh"
short_desc="The MirBSD Korn Shell"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
homepage="https://www.mirbsd.org/mksh.htm"
license="MirOS"
distfiles="https://www.mirbsd.org/MirOS/dist/mir/mksh/$pkgname-$version.tgz"
checksum="494ed3339e4d5c490e32b3c27dd3b642e493d86982ac60e15c8d6769e3b598ec"

do_build() {
	sh ./Build.sh -r -c lto
}

do_install() {
	vbin mksh
	vman mksh.1
	vinstall dot.mkshrc 644 etc/skel .mkshrc
	vlicense ${FILESDIR}/TaC-mksh.txt
}
