forked from semios/semios-packages
29 lines
482 B
Python
29 lines
482 B
Python
import subprocess
|
|
|
|
from lib.make import *
|
|
|
|
version("15.1.1")
|
|
source_url("https://gitea.semilabs.org/semios/sed/archive/v15.1.1.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep(f"libpcre2-dev @{arch.get_target()}")
|
|
builddep("pcre2-tools")
|
|
|
|
|
|
def build():
|
|
subprocess.run(["./build.sh"])
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_sed(composer):
|
|
composer.makedir("bin")
|
|
composer.addfile("sed", "bin/sed")
|
|
|
|
|
|
package("sed")
|
|
dep("semi-libc @same-arch")
|
|
dep("libpcre2 @same-arch")
|
|
on_pack(pack_sed)
|