diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2020-10-11 13:32:12 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-10-17 09:36:25 +0700 |
commit | 84ef49ae83763f503f6df926dcb2bb3c1546db9b (patch) | |
tree | c01723758467ae335c9fe226002e6440e132c0c3 /development/racer/racer.SlackBuild | |
parent | 4a03c1af5cf1b5d2ffb33e6db093b89617b4adc6 (diff) |
development/racer: Updated for version 2.1.39.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/racer/racer.SlackBuild')
-rw-r--r-- | development/racer/racer.SlackBuild | 82 |
1 files changed, 19 insertions, 63 deletions
diff --git a/development/racer/racer.SlackBuild b/development/racer/racer.SlackBuild index b3ea7baf4141f..2bc393dacf16a 100644 --- a/development/racer/racer.SlackBuild +++ b/development/racer/racer.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for racer -# Copyright 2017-2018 Andrew Clemons, Wellington New Zealand +# Copyright 2017-2018,2020 Andrew Clemons, Wellington New Zealand # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=racer -VERSION=${VERSION:-2.0.14} +VERSION=${VERSION:-2.1.39} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -91,65 +91,13 @@ mkdir vendor ( cd vendor - for dependency in aho-corasick=0.6.4 \ - ansi_term=0.11.0 \ - atty=0.2.8 \ - bitflags=0.7.0 \ - bitflags=1.0.1 \ - cfg-if=0.1.2 \ - clap=2.31.1 \ - clippy=0.0.103 \ - clippy_lints=0.0.103 \ - env_logger=0.5.5 \ - fuchsia-zircon-sys=0.3.3 \ - fuchsia-zircon=0.3.3 \ - humantime=1.1.1 \ - kernel32-sys=0.2.2 \ - lazy_static=1.0.0 \ - libc=0.2.39 \ - log=0.3.9 \ - log=0.4.1 \ - matches=0.1.6 \ - memchr=2.0.1 \ - nom=1.2.4 \ - quick-error=1.2.1 \ - quine-mc_cluskey=0.2.4 \ - rand=0.4.2 \ - redox_syscall=0.1.37 \ - redox_termios=0.1.1 \ - regex-syntax=0.3.9 \ - regex-syntax=0.5.3 \ - regex=0.2.10 \ - rustc-serialize=0.3.24 \ - semver=0.2.3 \ - serde=1.0.36 \ - strsim=0.7.0 \ - syntex_errors=0.52.0 \ - syntex_pos=0.52.0 \ - syntex_syntax=0.52.0 \ - term=0.4.6 \ - termcolor=0.3.5 \ - termion=1.5.1 \ - textwrap=0.9.0 \ - thread_local=0.3.5 \ - toml=0.1.30 \ - toml=0.4.5 \ - ucd-util=0.1.1 \ - unicode-normalization=0.1.5 \ - unicode-width=0.1.4 \ - unicode-xid=0.0.3 \ - unreachable=1.0.0 \ - utf8-ranges=1.0.0 \ - vec_map=0.8.0 \ - void=1.0.2 \ - winapi-build=0.1.1 \ - winapi-i686-pc-windows-gnu=0.4.0 \ - winapi-x86_64-pc-windows-gnu=0.4.0 \ - winapi=0.2.8 \ - winapi=0.3.4 \ - wincolor=0.1.6; do - dep="$(echo "$dependency" | cut -d= -f1)" - ver="$(echo "$dependency" | cut -d= -f2)" + 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 + + ver="$(printf "%s\n" "$dep" | cut -d= -f2)" + dep="$(printf "%s\n" "$dep" | cut -d= -f1)" tar xvf $CWD/$dep-$ver.crate @@ -182,11 +130,19 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +( + mkdir rustup-bin + cd rustup-bin + ln -s /usr/bin/rustup rustc +) + +PATH="$(pwd)/rustup-bin:$PATH" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -cargo build --release $CARGOTARGET +rustup run nightly-2020-09-23 cargo build --release $CARGOTARGET + +mkdir -p $PKG/usr/bin/ -mkdir -p $PKG/usr/bin find target -name racer -exec install -m 755 {} $PKG/usr/bin/racer \; find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |