Update cargo recipe

This commit is contained in:
Jeremy Soller 2022-10-17 11:52:17 -06:00
parent acbeb01397
commit 3e081637a6
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE
2 changed files with 17 additions and 11 deletions

View File

@ -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
View 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
"""