# Template file for 'cargo' pkgname=cargo version=0.3.0 revision=1 _githash_installer=e54d4823d26cdb3f98e5a1b17e1c257cd329aa61 build_style=gnu-configure hostmakedepends="rust python curl cmake pkg-config" makedepends="libressl-devel zlib-devel" depends="rust" short_desc="Rust package manager" maintainer="Christian Neukirchen " license="MIT, Apache-2.0" homepage="https://crates.io/" distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz https://github.com/rust-lang/rust-installer/archive/${_githash_installer}.tar.gz" checksum="fb49062c5f8646a05b363395237d4399d3b693b89b849a197b1e8e02072dbd49 af21c4519cf8099d79e80b73af513dd92d5da490e0c2497639cb1221072ea282" nocross=yes post_extract() { rm -rf src/rust-installer mv ../rust-installer-${_githash_installer} src/rust-installer } pre_configure() { configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}" sed -i '/not recognized/s/err/warn/' configure } post_install() { rm -rf ${DESTDIR}/usr/lib/rustlib ${DESTDIR}/usr/share/doc/cargo vlicense LICENSE-APACHE vlicense LICENSE-MIT vlicense LICENSE-THIRD-PARTY }