mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 12:54:20 +08:00
Update cargo recipe
This commit is contained in:
parent
acbeb01397
commit
3e081637a6
@ -1,11 +0,0 @@
|
||||
GIT=https://gitlab.redox-os.org/redox-os/cargo.git
|
||||
GIT_UPSTREAM=https://github.com/rust-lang/cargo.git
|
||||
BRANCH=redox
|
||||
BUILD_DEPENDS=(curl openssl zlib)
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export DEP_OPENSSL_ROOT="$sysroot"
|
||||
export OPENSSL_DIR="$sysroot"
|
||||
export DEP_Z_ROOT="$sysroot"
|
||||
}
|
||||
17
recipes/cargo/recipe.toml
Normal file
17
recipes/cargo/recipe.toml
Normal file
@ -0,0 +1,17 @@
|
||||
[source]
|
||||
git = "https://gitlab.redox-os.org/redox-os/cargo.git"
|
||||
upstream = "https://github.com/rust-lang/cargo.git"
|
||||
branch = "redox-2022-03-18"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"libssh2",
|
||||
"openssl",
|
||||
"zlib",
|
||||
]
|
||||
script = """
|
||||
export LIBSSH2_SYS_USE_PKG_CONFIG=1
|
||||
export LIBZ_SYS_STATIC=1
|
||||
cookbook_cargo
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user