void-packages/srcpkgs/rust/template

38 lines
861 B
Text
Raw Normal View History

2013-01-09 13:52:03 +00:00
# Template file for 'rust'
pkgname=rust
version=0.6
2013-01-09 13:52:03 +00:00
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
2013-01-09 13:52:03 +00:00
disable_debug=yes
do_configure() {
./configure --prefix=${DESTDIR}/usr --disable-docs
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 rust rustdoc rustc rusti rustpkg; do
2013-01-09 13:52:03 +00:00
chrpath -r /usr/lib/rustc/${XBPS_MACHINE}-unknown-linux-gnu/lib ${DESTDIR}/usr/bin/${f}
done
}
rust_package() {
pkg_install() {
vmove usr
}
}