void-packages/srcpkgs/cargo/template

36 lines
1.2 KiB
Bash
Raw Normal View History

2015-04-05 23:27:00 +02:00
# Template file for 'cargo'
pkgname=cargo
2016-03-04 12:27:48 +01:00
version=0.9.0
2015-09-17 14:39:39 +02:00
revision=1
2015-08-12 12:14:30 +02:00
_githash_installer=c37d3747da75c280237dc2d6b925078e69555499
2015-04-05 23:27:00 +02:00
build_style=gnu-configure
2016-03-04 12:27:48 +01:00
make_build_args="VERBOSE=1"
2015-04-05 23:27:00 +02:00
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"
2016-03-04 12:27:48 +01:00
checksum="4cadc436be442505851f3a8e9ffff1ef10b6379101a7f8e0afa9fa80f5198f89
2015-08-12 12:14:30 +02:00
6326434c225d25c6bfd28ff8bbc3108e331ae65e89a5c38dac8a2c8ffa09732b"
2015-04-05 23:27:00 +02:00
nocross=yes
post_extract() {
rm -rf src/rust-installer
mv ../rust-installer-${_githash_installer} src/rust-installer
sed -i 's,/etc/bash_completion.d,/share/bash-completion/completions,g' Makefile.in
2015-04-05 23:27:00 +02:00
}
2015-06-29 11:53:15 +02: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 23:27:00 +02:00
post_install() {
rm -rf ${DESTDIR}/usr/lib/rustlib ${DESTDIR}/usr/share/doc/cargo
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
vlicense LICENSE-THIRD-PARTY
}