2013-01-09 13:52:03 +00:00
|
|
|
# Template file for 'rust'
|
|
|
|
pkgname=rust
|
2013-04-03 17:12:26 +00:00
|
|
|
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"
|
2013-04-03 17:12:26 +00:00
|
|
|
checksum=e11cb529a1e20f27d99033181a9e0e131817136b46d2742f0fa1afa1210053e5
|
2013-01-09 13:52:03 +00:00
|
|
|
|
|
|
|
disable_debug=yes
|
|
|
|
|
|
|
|
do_configure() {
|
2013-04-03 17:12:26 +00:00
|
|
|
./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.
|
2013-04-03 17:12:26 +00:00
|
|
|
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
|
|
|
|
}
|
2013-04-14 09:53:56 +00:00
|
|
|
|
|
|
|
rust_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|