32 lines
600 B
Python
32 lines
600 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")
|
|
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")
|