diff --git a/development/mrustc/mrustc.SlackBuild b/development/mrustc/mrustc.SlackBuild index ee47d592554..0d136f39004 100644 --- a/development/mrustc/mrustc.SlackBuild +++ b/development/mrustc/mrustc.SlackBuild @@ -26,10 +26,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mrustc -VERSION=${VERSION:-0.11.2} +VERSION=${VERSION:-0.12.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +RUSTVER=${RUSTVER:-1.90.0} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -70,7 +71,7 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -cp -a $CWD/rustc-1.29.0-src.tar.gz . +cp -a $CWD/rustc-$RUSTVER-src.tar.gz . chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -80,13 +81,15 @@ find -L . \ export CFLAGS="$SLKCFLAGS" export CXXFLAGS="$SLKCFLAGS" +export RUSTC_VERSION=$RUSTVER MRUSTC_TARGET_VER=${RUSTVER%.*} OUTDIR_SUF=-${RUSTVER} + make make LIBS make test install -Dm755 bin/{mrustc,minicargo} \ -t $PKG/usr/bin -install -Dm644 output/*rlib{,.o,.hir} \ +install -Dm644 output-$RUSTVER/*rlib{,.o,.hir} \ -t $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM install -Dm644 rustc-*.{patch,toml} \ -t $PKG/usr/share/$PRGNAM diff --git a/development/mrustc/mrustc.info b/development/mrustc/mrustc.info index 6b9b8ea5801..b9aacad4711 100644 --- a/development/mrustc/mrustc.info +++ b/development/mrustc/mrustc.info @@ -1,12 +1,12 @@ PRGNAM="mrustc" -VERSION="0.11.2" +VERSION="0.12.0" HOMEPAGE="https://github.com/thepowersgang/mrustc" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/thepowersgang/mrustc/archive/v0.11.2/mrustc-0.11.2.tar.gz \ - https://static.rust-lang.org/dist/rustc-1.29.0-src.tar.gz" -MD5SUM_x86_64="bc85a8cbc0c82c6c1128c42c7fd55c59 \ - 54c3f0ffb826bdcc2a7395468828a94c" +DOWNLOAD_x86_64="https://github.com/thepowersgang/mrustc/archive/v0.12.0/mrustc-0.12.0.tar.gz \ + https://static.rust-lang.org/dist/rustc-1.90.0-src.tar.gz" +MD5SUM_x86_64="ca451ec73c133e8c64636535aa69d96b \ + 23957d9c3a1c82467d9793e404bf9d04" REQUIRES="" MAINTAINER="Ruoh-Shoei LIN" EMAIL="lin.ruohshoei+sbo@gmail.com"