28ac9ff596
This reverts commit 029a486e0e
.
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'rust'
|
|
pkgname=rust
|
|
version=1.8.0
|
|
revision=1
|
|
wrksrc="rustc-${version}"
|
|
lib32disabled=yes
|
|
build_style=configure
|
|
# XXX musl support still incomplete
|
|
only_for_archs="x86_64"
|
|
hostmakedepends="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}-src.tar.gz"
|
|
checksum=af4466147e8d4db4de2a46e07494d2dc2d96313c5b37da34237f511c905f7449
|
|
|
|
do_configure() {
|
|
local _triplet
|
|
case $XBPS_TARGET_MACHINE in
|
|
i686*) _triplet=i686-unknown-linux-gnu;;
|
|
x86_64*) _triplet=x86_64-unknown-linux-gnu;;
|
|
*) _triplet=$XBPS_TARGET_MACHINE;;
|
|
esac
|
|
./configure --prefix=/usr --disable-docs --enable-ccache --build=${_triplet} --release-channel=stable
|
|
}
|
|
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
|
|
}
|