cargo-c: use vendored source
This commit is contained in:
parent
2d55683baf
commit
cc3ab7b06c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue