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