Files
ports/packages/mksh/pkgbuild.py
2026-10-02 12:26:55 +00:00

31 lines
606 B
Python

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 <[email protected]>")
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")