void-packages/srcpkgs/cargo/template

36 lines
1.2 KiB
Bash
Raw Normal View History

2015-04-05 21:27:00 +00:00
# Template file for 'cargo'
pkgname=cargo
version=0.0.20150405
revision=1
_githash=3499c8ec8eb8ce65ec5bd78ecd8bbc610906d017
_githash_installer=ebc6b04c29591108d3f28e724b4b9b74cd1232e6
wrksrc="${pkgname}-${_githash}"
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 <chneukirchen@gmail.com>"
license="MIT, Apache-2.0"
homepage="https://crates.io/"
distfiles="https://github.com/rust-lang/${pkgname}/archive/${_githash}.tar.gz
https://github.com/rust-lang/rust-installer/archive/${_githash_installer}.tar.gz"
checksum="eb6e0365af8fe8a0d78d2caf234ee05c66ca63b13b9396fe83f3ef452f3f0c84
a6f119be6105b911131eb89e6919dfa08fa849e6f5bc46ced24adc2075d39b71"
nocross=yes
pre_configure() {
configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}"
}
2015-04-05 21:27:00 +00:00
post_extract() {
rm -rf src/rust-installer
mv ../rust-installer-${_githash_installer} src/rust-installer
}
post_install() {
rm -rf ${DESTDIR}/usr/lib/rustlib ${DESTDIR}/usr/share/doc/cargo
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
vlicense LICENSE-THIRD-PARTY
}