void-packages/srcpkgs/cargo/template

34 lines
1.1 KiB
Bash
Raw Normal View History

2015-04-05 23:27:00 +02:00
# Template file for 'cargo'
pkgname=cargo
2015-04-17 13:24:01 +02:00
version=0.2.0
2015-04-05 23:27:00 +02:00
revision=1
_githash_installer=ebc6b04c29591108d3f28e724b4b9b74cd1232e6
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/"
2015-04-17 13:24:01 +02:00
distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz
2015-04-05 23:27:00 +02:00
https://github.com/rust-lang/rust-installer/archive/${_githash_installer}.tar.gz"
2015-04-17 13:24:01 +02:00
checksum="49294406ea9335d2f18082511eafcd6b6326fa595be090cc6bfa13c9deab45d9
2015-04-05 23:27:00 +02:00
a6f119be6105b911131eb89e6919dfa08fa849e6f5bc46ced24adc2075d39b71"
nocross=yes
pre_configure() {
configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}"
}
2015-04-05 23:27:00 +02: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
}