mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
development/rustup: Updated for version 1.25.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
0ac6128a08
commit
87a5fdaaa6
3 changed files with 386 additions and 495 deletions
Binary file not shown.
|
@ -26,7 +26,7 @@
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=rustup
|
PRGNAM=rustup
|
||||||
VERSION=${VERSION:-1.25.2}
|
VERSION=${VERSION:-1.26.0}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
@ -81,8 +81,6 @@ rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
|
|
||||||
zcat $CWD/offline_build.diff.gz | patch -p1
|
|
||||||
|
|
||||||
# build offline
|
# build offline
|
||||||
# configuration tells cargo to use the configured directory
|
# configuration tells cargo to use the configured directory
|
||||||
# for dependencies instead of downloading from crates.io
|
# for dependencies instead of downloading from crates.io
|
||||||
|
@ -109,12 +107,7 @@ mkdir vendor
|
||||||
ver="$(printf "%s\n" "$dep" | cut -d= -f2)"
|
ver="$(printf "%s\n" "$dep" | cut -d= -f2)"
|
||||||
dep="$(printf "%s\n" "$dep" | cut -d= -f1)"
|
dep="$(printf "%s\n" "$dep" | cut -d= -f1)"
|
||||||
|
|
||||||
if [ "$dep" = "home" ] ; then
|
tar xvf $CWD/$dep-$ver.crate
|
||||||
tar xvf "$CWD/home-a243ee2fbee6022c57d56f5aa79aefe194eabe53.tar.gz"
|
|
||||||
mv home-a243ee2fbee6022c57d56f5aa79aefe194eabe53 home-0.5.3
|
|
||||||
else
|
|
||||||
tar xvf $CWD/$dep-$ver.crate
|
|
||||||
fi
|
|
||||||
|
|
||||||
touch $dep-$ver/.cargo-ok
|
touch $dep-$ver/.cargo-ok
|
||||||
|
|
||||||
|
@ -131,11 +124,7 @@ mkdir vendor
|
||||||
printf " },\n"
|
printf " },\n"
|
||||||
printf ' "package": "'
|
printf ' "package": "'
|
||||||
|
|
||||||
if [ "$dep" = "home" ] ; then
|
sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/'
|
||||||
printf "%s\"\\n" "479b7f48df1046b51085dcc214350c0ca7a303d91ca17944c0977fb72cf6bbac"
|
|
||||||
else
|
|
||||||
sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/'
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "}\n"
|
printf "}\n"
|
||||||
} > $dep-$ver/.cargo-checksum.json
|
} > $dep-$ver/.cargo-checksum.json
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue