diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2019-03-30 18:47:20 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-04-06 07:03:00 +0700 |
commit | d1714348e8524b83a59e6f50e454ca718efe0a15 (patch) | |
tree | 930ed10edda45d52dd713540c7da32f8fc19807e /system/fd | |
parent | b587f823125f0b631efb3106a3c8be9b969fae0a (diff) | |
download | slackbuilds-d1714348e8524b83a59e6f50e454ca718efe0a15.tar.gz slackbuilds-d1714348e8524b83a59e6f50e454ca718efe0a15.tar.xz |
system/fd: Allow overriding VERSION.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'system/fd')
-rw-r--r-- | system/fd/fd.SlackBuild | 56 |
1 files changed, 7 insertions, 49 deletions
diff --git a/system/fd/fd.SlackBuild b/system/fd/fd.SlackBuild index 8772fe767dc..b61674159d8 100644 --- a/system/fd/fd.SlackBuild +++ b/system/fd/fd.SlackBuild @@ -91,55 +91,13 @@ mkdir vendor ( cd vendor - for dependency in aho-corasick=0.6.6 \ - ansi_term=0.11.0 \ - atty=0.2.11 \ - bitflags=1.0.3 \ - cc=1.0.18 \ - cfg-if=0.1.5 \ - clap=2.32.0 \ - crossbeam=0.3.2 \ - ctrlc=3.1.1 \ - diff=0.1.11 \ - fnv=1.0.6 \ - fuchsia-zircon-sys=0.3.3 \ - fuchsia-zircon=0.3.3 \ - globset=0.4.1 \ - ignore=0.4.3 \ - kernel32-sys=0.2.2 \ - lazy_static=1.1.0 \ - libc=0.2.43 \ - log=0.4.4 \ - memchr=2.0.1 \ - nix=0.11.0 \ - num_cpus=1.8.0 \ - rand=0.4.3 \ - redox_syscall=0.1.40 \ - redox_termios=0.1.1 \ - regex-syntax=0.6.2 \ - regex=1.0.2 \ - remove_dir_all=0.5.1 \ - same-file=1.0.2 \ - strsim=0.7.0 \ - tempdir=0.3.7 \ - term_size=0.3.1 \ - termion=1.5.1 \ - textwrap=0.10.0 \ - thread_local=0.3.6 \ - ucd-util=0.1.1 \ - unicode-width=0.1.5 \ - utf8-ranges=1.0.0 \ - vec_map=0.8.1 \ - version_check=0.1.4 \ - void=1.0.2 \ - walkdir=2.2.0 \ - 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.5; 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 |