cargo: use create_wrksrc
This commit is contained in:
parent
d21de3397f
commit
bb3298f4ae
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue