import shutil import subprocess from lib.make import * version("15.1.1") description("the SemiOS fork of the UNIX patch utility") maintainer("sisungo ") source_url("https://gitea.semilabs.org/semios/patch/archive/v15.1.1.tar.gz") builddep("shortcut/c") def build(): subprocess.run(["./build.sh"], check=True) on_build(build) def pack_patch(composer): composer.makedir("bin") composer.addfile("patch", "bin/patch") package("patch") dep("semi-libc @same-arch") on_pack(pack_patch)