mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
development/cargo-c: Dependency changed to rust-opt.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1db83c6a7d
commit
55b6189023
3 changed files with 8 additions and 8 deletions
|
@ -4,4 +4,4 @@ libraries. It produces and installs a correct pkg-config file, a
|
|||
static library and a dynamic library, and a C header to be used
|
||||
by any C (and C-compatible) software.
|
||||
|
||||
rust16 is needed only at build time.
|
||||
rust-opt is needed only at build time.
|
||||
|
|
|
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=cargo-c
|
||||
VERSION=${VERSION:-0.10.4}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -38,7 +38,7 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
if LD_LIBRARY_PATH="/opt/rust16/lib" /opt/rust16/bin/rustc -Vv \
|
||||
if LD_LIBRARY_PATH="/opt/rust/lib" /opt/rust/bin/rustc -Vv \
|
||||
| grep host | grep i686 > /dev/null ; then
|
||||
ARCH=i686
|
||||
fi
|
||||
|
@ -141,13 +141,13 @@ find -L . \
|
|||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
CARGO_HOME=.cargo \
|
||||
PATH="/opt/rust16/bin:$PATH" \
|
||||
LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX" \
|
||||
PATH="/opt/rust/bin:$PATH" \
|
||||
LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX" \
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
cargo build --offline --release $CARGOTARGET
|
||||
PATH="/opt/rust16/bin:$PATH" \
|
||||
LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX" \
|
||||
PATH="/opt/rust/bin:$PATH" \
|
||||
LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX" \
|
||||
cargo install --offline --no-track --root "${PKG}/usr" --path="."
|
||||
|
||||
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
|
||||
|
|
|
@ -673,6 +673,6 @@ MD5SUM="6146712827673079129551b12e6ce312 \
|
|||
fc484f491cd0c91e5d7343776e055a77"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="rust16"
|
||||
REQUIRES="rust-opt"
|
||||
MAINTAINER="Alexander Verbovetsky"
|
||||
EMAIL="alik@ejik.org"
|
||||
|
|
Loading…
Reference in a new issue