Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions development/mrustc/mrustc.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions development/mrustc/mrustc.info
Original file line number Diff line number Diff line change
@@ -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"