forked from semios/semios-packages
29 lines
522 B
Python
29 lines
522 B
Python
import shutil
|
|
import subprocess
|
|
|
|
from lib.make import *
|
|
|
|
version("15.1.1")
|
|
description("the SemiOS fork of the UNIX patch utility")
|
|
maintainer("sisungo <[email protected]>")
|
|
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)
|