# Template file for 'mksh'
pkgname=mksh
version=R46
revision=1
short_desc="The Mir Korn SHell"
maintainer="pancake <xtraeme@gmail.com>"
homepage="https://www.mirbsd.org/mksh.htm"
license="BSD"
distfiles="http://pub.allbsd.org/MirOS/dist/mir/mksh/$pkgname-$version.tgz"
checksum=dbe6bf60b111a962ed33eb16dffa4d726d62dc0d60ad5429f0d575fc430af05a
wrksrc=mksh

do_build() {
	sh ./Build.sh
}

do_install() {
	vinstall ${wrksrc}/mksh 755 usr/bin
	vinstall ${wrksrc}/mksh.1 644 usr/share/man/man1
}

mksh_package() {
	register_shell="/bin/mksh"
	pkg_install() {
		vmove usr
	}
}
