maturin: use create_wrksrc
This commit is contained in:
parent
068b6a25a5
commit
5b2f1d5797
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
pkgname=maturin
|
pkgname=maturin
|
||||||
version=0.13.6
|
version=0.13.6
|
||||||
revision=1
|
revision=1
|
||||||
|
create_wrksrc=yes
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
build_helper="qemu rust"
|
build_helper="qemu rust"
|
||||||
hostmakedepends="python3-setuptools-rust python3-tomli python3-wheel cargo"
|
hostmakedepends="python3-setuptools-rust python3-tomli python3-wheel cargo"
|
||||||
|
@ -31,7 +32,8 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
mv ../target-lexicon* target-lexicon
|
mv maturin-${version}/* .
|
||||||
|
mv target-lexicon-* target-lexicon
|
||||||
echo "[patch.crates-io]" >> Cargo.toml
|
echo "[patch.crates-io]" >> Cargo.toml
|
||||||
echo "target-lexicon = { path = './target-lexicon' }" >> Cargo.toml
|
echo "target-lexicon = { path = './target-lexicon' }" >> Cargo.toml
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue