aboutsummaryrefslogtreecommitdiff
path: root/development/cargo-vendor/cargo-vendor.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2017-10-04 11:11:35 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-10-04 11:11:35 +0100
commit969e468c713df1b98252eecb6d1470aabafe33f0 (patch)
tree4b615455bcf83b908815a58988cb424f387a9eed /development/cargo-vendor/cargo-vendor.SlackBuild
parentc0ac6d14a8a10eace62158b3a1aaf3a007143e77 (diff)
development/cargo-vendor: Updated for version 0.1.12.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/cargo-vendor/cargo-vendor.SlackBuild')
-rw-r--r--development/cargo-vendor/cargo-vendor.SlackBuild102
1 files changed, 57 insertions, 45 deletions
diff --git a/development/cargo-vendor/cargo-vendor.SlackBuild b/development/cargo-vendor/cargo-vendor.SlackBuild
index 68d4ef954978c..5ced9ecb37eeb 100644
--- a/development/cargo-vendor/cargo-vendor.SlackBuild
+++ b/development/cargo-vendor/cargo-vendor.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cargo-vendor
-VERSION=${VERSION:-0.1.11}
+VERSION=${VERSION:-0.1.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,15 +43,19 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
+ CARGOTARGET="--target i586-unknown-linux-gnu"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
+ CARGOTARGET="--target i686-unknown-linux-gnu"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+ CARGOTARGET="--target x86_64-unknown-linux-gnu"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
+ CARGOTARGET=""
fi
set -e
@@ -86,87 +90,93 @@ else
for dependency in advapi32-sys=0.2.0 \
aho-corasick=0.6.3 \
+ atty=0.2.2 \
+ backtrace=0.3.3 \
+ backtrace-sys=0.1.12 \
+ bitflags=0.7.0 \
bitflags=0.9.1 \
- cargo=0.19.0 \
- cfg-if=0.1.1 \
- chrono=0.2.25 \
- cmake=0.1.24 \
- crates-io=0.8.0 \
+ cargo=0.21.0 \
+ cfg-if=0.1.2 \
+ cmake=0.1.25 \
+ conv=0.3.3 \
+ crates-io=0.10.0 \
crossbeam=0.2.10 \
- curl=0.4.6 \
- curl-sys=0.3.12 \
- docopt=0.7.0 \
- dtoa=0.4.1 \
+ curl=0.4.8 \
+ curl-sys=0.3.14 \
+ custom_derive=0.1.7 \
+ dbghelp-sys=0.2.0 \
+ docopt=0.8.1 \
+ dtoa=0.4.2 \
env_logger=0.4.3 \
+ error-chain=0.11.0-rc.2 \
filetime=0.1.10 \
flate2=0.2.19 \
foreign-types=0.2.0 \
fs2=0.4.2 \
- gcc=0.3.51 \
- git2=0.6.6 \
+ gcc=0.3.53 \
+ git2=0.6.8 \
git2-curl=0.7.0 \
glob=0.2.11 \
- idna=0.1.2 \
- itoa=0.3.1 \
+ hex=0.2.0 \
+ idna=0.1.4 \
+ itoa=0.3.3 \
+ jobserver=0.1.6 \
kernel32-sys=0.2.2 \
lazy_static=0.2.8 \
- libc=0.2.24 \
- libgit2-sys=0.6.12 \
+ libc=0.2.30 \
+ libgit2-sys=0.6.14 \
libssh2-sys=0.2.6 \
libz-sys=1.0.16 \
log=0.3.8 \
+ magenta=0.1.1 \
+ magenta-sys=0.1.1 \
matches=0.1.6 \
memchr=1.0.1 \
miniz-sys=0.1.9 \
miow=0.2.1 \
- net2=0.2.29 \
- num=0.1.39 \
- num-integer=0.1.34 \
- num-iter=0.1.33 \
- num-traits=0.1.39 \
- num_cpus=1.5.1 \
- openssl=0.9.14 \
+ net2=0.2.31 \
+ num-traits=0.1.40 \
+ num_cpus=1.6.2 \
+ openssl=0.9.17 \
openssl-probe=0.1.1 \
- openssl-sys=0.9.14 \
+ openssl-sys=0.9.17 \
percent-encoding=1.0.0 \
pkg-config=0.3.9 \
psapi-sys=0.1.0 \
quote=0.3.15 \
- rand=0.3.15 \
- redox_syscall=0.1.18 \
+ rand=0.3.16 \
regex=0.2.2 \
regex-syntax=0.4.1 \
- rustc-serialize=0.3.24 \
- semver=0.6.0 \
+ rustc-demangle=0.1.5 \
+ scoped-tls=0.1.0 \
+ semver=0.7.0 \
semver-parser=0.7.0 \
- serde=0.9.15 \
- serde=1.0.8 \
- serde_codegen_internals=0.14.2 \
- serde_derive=0.9.15 \
- serde_ignored=0.0.2 \
- serde_json=0.9.10 \
- serde_json=1.0.2 \
+ serde=1.0.12 \
+ serde_derive=1.0.12 \
+ serde_derive_internals=0.15.1 \
+ serde_ignored=0.0.3 \
+ serde_json=1.0.3 \
shell-escape=0.1.3 \
+ socket2=0.2.2 \
strsim=0.6.0 \
syn=0.11.11 \
synom=0.11.3 \
tar=0.4.13 \
tempdir=0.3.5 \
- term=0.4.5 \
- thread-id=3.1.0 \
- thread_local=0.3.3 \
- time=0.1.37 \
- toml=0.3.2 \
- unicode-bidi=0.3.3 \
+ termcolor=0.3.3 \
+ thread_local=0.3.4 \
+ toml=0.4.5 \
+ unicode-bidi=0.3.4 \
unicode-normalization=0.1.5 \
unicode-xid=0.0.4 \
- unreachable=0.1.1 \
- url=1.5.0 \
+ unreachable=1.0.0 \
+ url=1.5.1 \
utf8-ranges=1.0.0 \
vcpkg=0.2.2 \
void=1.0.2 \
winapi=0.2.8 \
winapi-build=0.1.1 \
+ wincolor=0.1.4 \
ws2_32-sys=0.2.1; do
dep="$(echo "$dependency" | cut -d= -f1)"
ver="$(echo "$dependency" | cut -d= -f2)"
@@ -203,11 +213,13 @@ 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 {} \;
-cargo build --release
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+cargo build --release $CARGOTARGET
mkdir -p $PKG/usr/bin/
-install -m 755 target/release/cargo-vendor $PKG/usr/bin
+find target -name cargo-vendor -exec install -m 755 {} $PKG/usr/bin/cargo-vendor \;
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true