maturin: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-27 18:59:02 +07:00
parent 068b6a25a5
commit 5b2f1d5797

View file

@ -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
}