cargo: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-27 18:59:02 +07:00 committed by Đoàn Trần Công Danh
parent d21de3397f
commit bb3298f4ae
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
pkgname=cargo
version=1.64.0
revision=1
create_wrksrc=yes
build_helper=rust
hostmakedepends="cargo-bootstrap rust python3 curl cmake pkg-config zlib-devel"
makedepends="rust libcurl-devel openssl-devel"
@ -27,8 +28,9 @@ if [ -z "$_build_static" ]; then
makedepends+=" libgit2-devel"
fi
pre_patch() {
mv ../crossbeam-* crossbeam-utils
post_extract() {
mv cargo-rust-${version}/* .
mv crossbeam-crossbeam-utils-* crossbeam-utils
}
post_patch() {