void-packages/srcpkgs/rust/template

32 lines
802 B
Plaintext
Raw Normal View History

2013-01-09 14:52:03 +01:00
# Template file for 'rust'
pkgname=rust
version=0.5
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=d326d22707f0562d669c11efbc33ae812ddbf76ab78f07087fc5beb095a8928a
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 rustdoc rustc rusti cargo; do
chrpath -r /usr/lib/rustc/${XBPS_MACHINE}-unknown-linux-gnu/lib ${DESTDIR}/usr/bin/${f}
done
}