termux-packages/disabled-packages/openethereum/cmake_mod.sh
Henrik Grimler 6286c284f0
openethereum: disable package
It doesn't build anymore. Disable until someone has managed to fix the
errors:

gmake[2]: *** [CMakeFiles/Makefile2:484: CMakeFiles/rocksdb.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:491: CMakeFiles/rocksdb.dir/rule] Error 2
gmake: *** [Makefile:208: rocksdb] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2

build script failed, must exit now', /home/builder/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.42/src/lib.rs:861:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-02-04 13:24:34 +01:00

32 lines
572 B
Bash
Executable File

#!/bin/bash
set -x
if [ $# -eq 0 ]; then
cmake --version
elif [ $1 = "--build" ]; then
cmake "$@"
else
_CACHE="$1/defaultcache.cmake"
cp $TERMUX_COMMON_CACHEDIR/defaultcache.cmake "$_CACHE"
for var in "$@"; do
case "$var" in
"-DCMAKE_C_COMPILER"*|"-DCMAKE_CXX_COMPILER"*|"-DCMAKE_C_FLAGS="*|"-DCMAKE_CXX_FLAGS="*)
;;
"-D"*"="*)
echo "${var/-D/}" >> "$_CACHE"
;;
esac
done
sed -i 's/\"//g' "$_CACHE"
ARG=()
while read -r arg; do
if [ ! -z "$arg" ]; then
ARG+=("-D$arg")
fi
done < "$_CACHE"
cmake "$1" "${ARG[@]}"
rm "$_CACHE"
fi