34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
# Template file for 'cargo'
|
|
pkgname=cargo
|
|
version=0.2.0
|
|
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/"
|
|
distfiles="https://github.com/rust-lang/${pkgname}/archive/${version}.tar.gz
|
|
https://github.com/rust-lang/rust-installer/archive/${_githash_installer}.tar.gz"
|
|
checksum="49294406ea9335d2f18082511eafcd6b6326fa595be090cc6bfa13c9deab45d9
|
|
a6f119be6105b911131eb89e6919dfa08fa849e6f5bc46ced24adc2075d39b71"
|
|
nocross=yes
|
|
|
|
pre_configure() {
|
|
configure_args+=" --host=${XBPS_TRIPLET/-pc-/-unknown-} --build=${XBPS_TRIPLET/-pc-/-unknown-}"
|
|
}
|
|
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
|
|
}
|