Files
semios-packages/packages/mksh/pkgbuild.py
T
2026-08-10 09:53:45 +08:00

33 lines
643 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_url(
"https://github.com/mirabilos/mksh-cvs2git/archive/refs/tags/mksh-R59c.tar.gz"
)
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")