]> git.pld-linux.org Git - packages/gnome-tour.git/blob - gnome-tour-x32.patch
- trying more
[packages/gnome-tour.git] / gnome-tour-x32.patch
1 --- gnome-tour-40.0/build-aux/cargo.sh.orig     2021-03-23 16:31:44.642007800 +0100
2 +++ gnome-tour-40.0/build-aux/cargo.sh  2021-04-24 17:48:45.504234520 +0200
3 @@ -2,19 +2,20 @@
4  
5  export MESON_BUILD_ROOT="$1"
6  export MESON_SOURCE_ROOT="$2"
7 +export CARGO_TARGET_OPT="--target x86_64-unknown-linux-gnux32"
8  export CARGO_TARGET_DIR="$MESON_BUILD_ROOT"/target
9  export CARGO_HOME="$CARGO_TARGET_DIR"/cargo-home
10  FEATURES="$6"
11  
12 -if [ $4 = "Devel" ]
13 +if [ "$4" = "Devel" ]
14  then
15      echo "DEBUG MODE"
16 -    cargo build --manifest-path \
17 +    cargo build $CARGO_TARGET_OPT --manifest-path \
18          "$MESON_SOURCE_ROOT"/Cargo.toml $FEATURES && \
19 -        cp "$CARGO_TARGET_DIR"/debug/$5 $3
20 +        cp "$CARGO_TARGET_DIR"/debug/x86_64-unknown-linux-gnux32/$5 $3
21  else
22      echo "RELEASE MODE"
23 -    cargo build --manifest-path \
24 +    cargo build $CARGO_TARGET_OPT --manifest-path \
25          "$MESON_SOURCE_ROOT"/Cargo.toml $FEATURES --release && \
26 -        cp "$CARGO_TARGET_DIR"/release/$5 $3
27 +        cp "$CARGO_TARGET_DIR"/release/x86_64-unknown-linux-gnux32/$5 $3
28  fi
This page took 0.10366 seconds and 3 git commands to generate.