cargo: update to 0.25.0.

This commit is contained in:
Leah Neukirchen 2018-02-27 14:59:55 +01:00
parent 7c43490ca2
commit b599a12762

View file

@ -1,6 +1,6 @@
# Template file for 'cargo'
pkgname=cargo
version=0.24.0
version=0.25.0
revision=1
_githash_installer=4f994850808a572e2cc8d43f968893c8e942e9bf
hostmakedepends="rust python curl cmake pkg-config"
@ -11,15 +11,15 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT, Apache-2.0"
homepage="https://crates.io/"
distfiles="https://github.com/rust-lang/cargo/archive/${version}.tar.gz"
checksum=a9d4291254a1d622d3c3cb942aaa56ab4059b8d04915c3af234f0362f14722e8
checksum=e826fc9c2c97a46c2da24f71b54dc6acef16e4fa5dc15667d278f9a7e5edbe60
nocross=yes
case "$XBPS_MACHINE" in
x86_64-musl)
distfiles+="
https://repo.voidlinux.eu/distfiles/cargo-0.18.0-x86_64-unknown-linux-musl.tar.gz"
https://repo.voidlinux.eu/distfiles/cargo-0.24.0-x86_64-unknown-linux-musl.tar.gz"
checksum+="
28f2ee839f14f8b3edf3f4e4cc8600ac99ea50905ee8fb91116bba676728c2e9"
8a784a2318eea7bfd7db7d854f51dc31a25ed866757bc948babbb8edb3ba41a0"
;;
x86_64)
distfiles+="
@ -37,7 +37,10 @@ esac
post_extract() {
mkdir -p target/snapshot
cp ../cargo-*/cargo/bin/cargo cargo
case "$XBPS_MACHINE" in
x86_64-musl) cp ../cargo cargo;;
*) cp ../cargo-*/cargo/bin/cargo cargo;;
esac
}
do_build() {
export LIBGIT2_SYS_USE_PKG_CONFIG=yes