From cc3ab7b06cffe16bf5edf2a559d1a1a7666783ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 3 Aug 2023 21:35:10 +0700 Subject: [PATCH] cargo-c: use vendored source --- srcpkgs/cargo-c/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/cargo-c/template b/srcpkgs/cargo-c/template index 6ac322a0a39..996393d7318 100644 --- a/srcpkgs/cargo-c/template +++ b/srcpkgs/cargo-c/template @@ -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() {