void-packages/srcpkgs/cargo/template

34 lines
1.1 KiB
Bash
Raw Normal View History

2015-04-05 21:27:00 +00:00
# Template file for 'cargo'
pkgname=cargo
2015-06-29 09:53:15 +00:00
version=0.3.0
2015-07-09 10:14:29 +00:00
revision=2
2015-06-29 09:53:15 +00:00
_githash_installer=e54d4823d26cdb3f98e5a1b17e1c257cd329aa61
2015-04-05 21:27:00 +00:00
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 11:24:01 +00:00
distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz
2015-04-05 21:27:00 +00:00
https://github.com/rust-lang/rust-installer/archive/${_githash_installer}.tar.gz"
2015-06-29 09:53:15 +00:00
checksum="fb49062c5f8646a05b363395237d4399d3b693b89b849a197b1e8e02072dbd49
af21c4519cf8099d79e80b73af513dd92d5da490e0c2497639cb1221072ea282"
2015-04-05 21:27:00 +00:00
nocross=yes
post_extract() {
rm -rf src/rust-installer
mv ../rust-installer-${_githash_installer} src/rust-installer
}
2015-06-29 09:53:15 +00:00
pre_configure() {
configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}"
sed -i '/not recognized/s/err/warn/' configure
}
2015-04-05 21:27:00 +00:00
post_install() {
rm -rf ${DESTDIR}/usr/lib/rustlib ${DESTDIR}/usr/share/doc/cargo
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
vlicense LICENSE-THIRD-PARTY
}