diff --git a/srcpkgs/rust/template b/srcpkgs/rust/template index 93d022d66f6..aa7f4cd6fa3 100644 --- a/srcpkgs/rust/template +++ b/srcpkgs/rust/template @@ -6,7 +6,6 @@ wrksrc="rustc-${version/.beta/-beta}" lib32disabled=yes build_style=configure only_for_archs="x86_64 x86_64-musl i686 i686-musl" -configure_args="--prefix=/usr --disable-docs --build=$(gcc -dumpmachine)" hostmakedepends="pkg-config curl python" short_desc="A safe, concurrent, practical systems language" maintainer="Juan RP " @@ -15,6 +14,12 @@ license="MIT, Apache-2.0" distfiles="https://static.rust-lang.org/dist/rustc-${version/.beta/-beta}-src.tar.gz" checksum=cb09f443b37ec1b81fe73c04eb413f9f656859cf7d00bc5088008cbc2a63fa8a +do_configure() { + ln -sf x86_64-unknown-linux-gnu.mk mk/cfg/x86_64-linux-gnu.mk + ln -sf i686-unknown-linux-gnu.mk mk/cfg/i686-pc-linux-gnu.mk + ln -sf x86_64-unknown-linux-musl.mk mk/cfg/x86_64-linux-musl.mk + ./configure --musl-root=/usr --prefix=/usr --disable-docs --enable-ccache --build=$XBPS_TRIPLET +} post_install() { vlicense COPYRIGHT vlicense LICENSE-APACHE