void-packages/srcpkgs/rust/template

38 lines
861 B
Plaintext

# Template file for 'rust'
pkgname=rust
version=0.6
revision=1
makedepends="which pkg-config perl curl python chrpath"
short_desc="A safe, concurrent, practical language"
maintainer="pancake <pancake@nopcode.org>"
homepage="http://www.rust-lang.org/"
license="MIT, Apache-2.0"
distfiles="http://static.rust-lang.org/dist/rust-${version}.tar.gz"
checksum=e11cb529a1e20f27d99033181a9e0e131817136b46d2742f0fa1afa1210053e5
disable_debug=yes
do_configure() {
./configure --prefix=${DESTDIR}/usr --disable-docs
}
do_build() {
make ${makejobs}
}
do_install() {
make install
vinstall COPYRIGHT 644 usr/share/licenses/rust LICENSE
# Set proper rpath on binaries.
for f in rust rustdoc rustc rusti rustpkg; do
chrpath -r /usr/lib/rustc/${XBPS_MACHINE}-unknown-linux-gnu/lib ${DESTDIR}/usr/bin/${f}
done
}
rust_package() {
pkg_install() {
vmove usr
}
}