cargo-c: use vendored source

This commit is contained in:
Đoàn Trần Công Danh 2023-08-03 21:35:10 +07:00
parent 2d55683baf
commit cc3ab7b06c
1 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,14 @@ post_extract() {
cd ${wrksrc}
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Cargo.lock .
cargo vendor
mkdir -p .cargo
cat <<-EOF >>.cargo/config.toml
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF
}
post_install() {