From 5b2f1d5797bbbc2a10c29824d12f0f0783962896 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, 27 Oct 2022 18:59:02 +0700 Subject: [PATCH] maturin: use create_wrksrc --- srcpkgs/maturin/template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template index 8270694bc1b..79aa1f62d9b 100644 --- a/srcpkgs/maturin/template +++ b/srcpkgs/maturin/template @@ -2,6 +2,7 @@ pkgname=maturin version=0.13.6 revision=1 +create_wrksrc=yes build_style=python3-module build_helper="qemu rust" hostmakedepends="python3-setuptools-rust python3-tomli python3-wheel cargo" @@ -31,7 +32,8 @@ case "$XBPS_TARGET_MACHINE" in esac post_extract() { - mv ../target-lexicon* target-lexicon + mv maturin-${version}/* . + mv target-lexicon-* target-lexicon echo "[patch.crates-io]" >> Cargo.toml echo "target-lexicon = { path = './target-lexicon' }" >> Cargo.toml }