void-packages/srcpkgs/rust/template

33 lines
854 B
Text
Raw Normal View History

2013-01-09 13:52:03 +00: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() {
2013-01-09 13:55:38 +00:00
./configure --prefix=${DESTDIR}/usr --disable-docs \
--host-triple=${XBPS_MACHINE}-unknown-linux-gnu
2013-01-09 13:52:03 +00:00
}
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
}