import subprocess from lib.make import * version("1.59.2") description("the MirBSD Korn Shell, a minimal and useful implementation of the POSIX shell with extensions") maintainer("sisungo ") source_managed("github://mirabilos/mksh-cvs2git#mksh-R59c") builddep("shortcut/c") builddep("gnu-sed") def build(): subprocess.run(["sh", "./Build.sh"], check=True) on_build(build) def pack_mksh(composer): composer.makedir("bin") composer.addfile("mksh", "bin/mksh") package("mksh") on_pack(pack_mksh) dep("semi-libc @same-arch") provide("sh") link("bin/mksh", "/bin/sh")