34 lines
1009 B
Bash
34 lines
1009 B
Bash
# Template file for 'rust'
|
|
pkgname=rust
|
|
version=1.0.0.beta
|
|
revision=1
|
|
wrksrc="rustc-${version/.beta/-beta}"
|
|
lib32disabled=yes
|
|
build_style=configure
|
|
only_for_archs="x86_64 i686"
|
|
configure_args="--prefix=/usr --disable-docs"
|
|
hostmakedepends="which pkg-config curl python"
|
|
short_desc="A safe, concurrent, practical systems language"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.rust-lang.org/"
|
|
license="MIT, Apache-2.0"
|
|
distfiles="https://static.rust-lang.org/dist/rustc-${version/.beta/-beta}-src.tar.gz"
|
|
checksum=94248e30487723ac6f6c34a0db5a21085c0b1338e6a32bd12b159e1d2cd80451
|
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
configure_args+=" --build=$(gcc -dumpmachine)"
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense COPYRIGHT
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
|
|
cd ${DESTDIR}/usr/lib/rustlib
|
|
rm install.log uninstall.sh components manifest-rustc rust-installer-version
|
|
cd ${DESTDIR}/usr/lib
|
|
ln -sf rustlib/*/lib/*.so . # symlinks instead of copies
|
|
|
|
rm -rf ${DESTDIR}/usr/share/doc/rust
|
|
}
|