@@ -0,0 +1,35 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.1.0-alpha.1")
|
||||
description("SemiOS system account service & utilities")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitea.semilabs.org/semios/account/archive/0.1.0-alpha.1.tar.gz")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
def build():
|
||||
os.makedirs("build_config", exist_ok=True)
|
||||
shutil.copy2("../../init.json", "build_config/init.json")
|
||||
rust.build(["--features", "embed_init_file"])
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
os.chdir(rust.artifacts_dir())
|
||||
composer.makedir("bin")
|
||||
composer.makedir("libexec")
|
||||
composer.addfile("account", "bin/account")
|
||||
composer.addfile("accountd", "bin/accountd")
|
||||
composer.addfile("auth_password", "libexec/auth_password")
|
||||
|
||||
|
||||
package("account")
|
||||
on_pack(pack)
|
||||
dep("semi-libc @same-arch")
|
||||
Reference in New Issue
Block a user