forked from semios/semios-packages
35 lines
813 B
Python
35 lines
813 B
Python
import os
|
|
import shutil
|
|
|
|
from lib import rust
|
|
from lib.make import *
|
|
|
|
version("0.10.9")
|
|
description("Modern, portable and fast implementation of service supervisor and the init daemon.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/sisungo/airup/archive/refs/tags/v0.10.9.tar.gz")
|
|
|
|
builddep("shortcut/rust")
|
|
|
|
|
|
def build():
|
|
shutil.copy2("../../build_manifest.json", "build_manifest.json")
|
|
rust.build()
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_airup(composer):
|
|
os.chdir(rust.artifacts_dir())
|
|
composer.makedir("bin")
|
|
composer.makedir("libexec")
|
|
composer.addfile("airup", "bin/airup")
|
|
composer.addfile("airupd", "bin/airupd")
|
|
composer.addfile("airup-fallback-logger", "libexec/airup-fallback-logger")
|
|
|
|
|
|
package("airup")
|
|
on_pack(pack_airup)
|
|
dep("semi-libc @same-arch")
|