cargo: use create_wrksrc
This commit is contained in:
parent
d21de3397f
commit
bb3298f4ae
|
@ -2,6 +2,7 @@
|
||||||
pkgname=cargo
|
pkgname=cargo
|
||||||
version=1.64.0
|
version=1.64.0
|
||||||
revision=1
|
revision=1
|
||||||
|
create_wrksrc=yes
|
||||||
build_helper=rust
|
build_helper=rust
|
||||||
hostmakedepends="cargo-bootstrap rust python3 curl cmake pkg-config zlib-devel"
|
hostmakedepends="cargo-bootstrap rust python3 curl cmake pkg-config zlib-devel"
|
||||||
makedepends="rust libcurl-devel openssl-devel"
|
makedepends="rust libcurl-devel openssl-devel"
|
||||||
|
@ -27,8 +28,9 @@ if [ -z "$_build_static" ]; then
|
||||||
makedepends+=" libgit2-devel"
|
makedepends+=" libgit2-devel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_patch() {
|
post_extract() {
|
||||||
mv ../crossbeam-* crossbeam-utils
|
mv cargo-rust-${version}/* .
|
||||||
|
mv crossbeam-crossbeam-utils-* crossbeam-utils
|
||||||
}
|
}
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
|
|
Loading…
Reference in New Issue