diff options
Diffstat (limited to 'development/rustup/rustup.SlackBuild')
-rw-r--r-- | development/rustup/rustup.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/development/rustup/rustup.SlackBuild b/development/rustup/rustup.SlackBuild index 866d3c0e28ad2..0f0fb1a7e169d 100644 --- a/development/rustup/rustup.SlackBuild +++ b/development/rustup/rustup.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=rustup -VERSION=${VERSION:-1.21.1} +VERSION=${VERSION:-1.22.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,6 +69,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION +zcat $CWD/offline_build.diff.gz | patch -p1 + # build offline # configuration tells cargo to use the configured directory # for dependencies intead of downloading from crates.io @@ -90,12 +92,17 @@ mkdir vendor grep -h -A 3 "\[\[package\]\]" $(find ../ -maxdepth 1 -mindepth 1 -name Cargo.lock | tr '\n' ' ') | \ sed 's/[[:space:]]*=[[:space:]]*/=/g;s/^--//;s/^\[\[/--\n[[/' | \ awk 'BEGIN { RS = "--\n" ; FS="\n" } { print $2, $3, $4 }' | sed 's/"//g;s/name=//;s/ version=/=/' | \ - grep crates\.io-index | sed 's/ source=.*$//' | sort -u | while read -r dep ; do + grep 'source=' | sed 's/ source=.*$//' | sort -u | while read -r dep ; do ver="$(printf "%s\n" "$dep" | cut -d= -f2)" dep="$(printf "%s\n" "$dep" | cut -d= -f1)" - tar xvf $CWD/$dep-$ver.crate + if [ "$dep" = "home" ] ; then + 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 @@ -112,7 +119,11 @@ mkdir vendor printf " },\n" printf ' "package": "' - sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/' + if [ "$dep" = "home" ] ; then + printf "%s\"\\n" "479b7f48df1046b51085dcc214350c0ca7a303d91ca17944c0977fb72cf6bbac" + else + sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/' + fi printf "}\n" } > $dep-$ver/.cargo-checksum.json |