cargo: fix build, use more system deps.
This commit is contained in:
parent
3753627718
commit
0dfcb64676
1 changed files with 3 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
|||
# Template file for 'cargo'
|
||||
pkgname=cargo
|
||||
version=0.9.0
|
||||
revision=2
|
||||
revision=3
|
||||
_githash_installer=c37d3747da75c280237dc2d6b925078e69555499
|
||||
build_style=gnu-configure
|
||||
make_build_args="VERBOSE=1"
|
||||
hostmakedepends="rust python curl cmake pkg-config"
|
||||
makedepends="libressl-devel zlib-devel"
|
||||
makedepends="libcurl-devel libgit2-devel"
|
||||
depends="rust"
|
||||
short_desc="Rust package manager"
|
||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||
|
@ -17,7 +17,6 @@ distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz
|
|||
checksum="4cadc436be442505851f3a8e9ffff1ef10b6379101a7f8e0afa9fa80f5198f89
|
||||
6326434c225d25c6bfd28ff8bbc3108e331ae65e89a5c38dac8a2c8ffa09732b"
|
||||
nocross=yes
|
||||
broken="libressl-2.3/SSLv3_client_method"
|
||||
|
||||
post_extract() {
|
||||
rm -rf src/rust-installer
|
||||
|
@ -27,6 +26,7 @@ post_extract() {
|
|||
pre_configure() {
|
||||
configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}"
|
||||
sed -i '/not recognized/s/err/warn/' configure
|
||||
export LIBGIT2_SYS_USE_PKG_CONFIG=yes
|
||||
}
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/usr/lib/rustlib ${DESTDIR}/usr/share/doc/cargo
|
||||
|
|
Loading…
Add table
Reference in a new issue