25 lines
461 B
Python
25 lines
461 B
Python
from lib.make import *
|
|
from lib import rust
|
|
|
|
|
|
version("0.10.26")
|
|
description("build and install C-compatible libraries")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://lu-zero/cargo-c#v0.10.26", "rust")
|
|
|
|
builddep("shortcut/rust")
|
|
builddep("pkgconf @target")
|
|
builddep("aws-lc-dev @target")
|
|
builddep("rust-bindgen")
|
|
|
|
|
|
def build():
|
|
rust.build()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("cargo-c")
|
|
dep("semi-libc @same-arch")
|
|
rust.use_auto_pack(["bin"])
|