36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# Template file for 'cargo'
|
|
pkgname=cargo
|
|
version=0.11.0
|
|
revision=1
|
|
_githash_installer=c37d3747da75c280237dc2d6b925078e69555499
|
|
build_style=gnu-configure
|
|
make_build_args="VERBOSE=1"
|
|
hostmakedepends="rust python curl cmake pkg-config"
|
|
makedepends="libcurl-devel libgit2-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/${version}.tar.gz
|
|
https://github.com/rust-lang/rust-installer/archive/${_githash_installer}.tar.gz"
|
|
checksum="4f390d7ea3352a1ecafb53d1a2b98c2e195b81a5c652342a8b91672d9f1dde0a
|
|
6326434c225d25c6bfd28ff8bbc3108e331ae65e89a5c38dac8a2c8ffa09732b"
|
|
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
|
|
}
|
|
pre_configure() {
|
|
configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}"
|
|
sed -i '/not recognized/s/err/warn/' configure
|
|
export LIBGIT2_SYS_USE_PKG_CONFIG=yes
|
|
}
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/lib/rustlib ${DESTDIR}/usr/share/doc/cargo
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
vlicense LICENSE-THIRD-PARTY
|
|
}
|