From 97d2a0e71960b46c80a0592c8585eb4357246f09 Mon Sep 17 00:00:00 2001 From: Botspot Date: Thu, 29 Oct 2020 16:46:28 -0500 Subject: [PATCH] box86 install-32 as there's no 64 bit --- apps/Box86/install-32 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 apps/Box86/install-32 diff --git a/apps/Box86/install-32 b/apps/Box86/install-32 new file mode 100755 index 0000000..3aeff3d --- /dev/null +++ b/apps/Box86/install-32 @@ -0,0 +1,23 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +if [ -d ~/box86 ];then + echo -e "\e[33mbox86 already exists on your system. Moving the old version to Trash...\e[39m" + gio trash ~/box86 +fi + +"${DIRECTORY}/pkg-install" "cmake" "$(dirname "$0")" || exit 1 + +git clone https://github.com/ptitSeb/box86 || error "failed to download repo!" +cd box86 || error "failed to enter directory!" +mkdir build; cd build +cmake .. -DRPI4=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo || error "cmake failed!" +make -j24 || error "make failed!" +sudo make install || error "sudo make install failed!" +sudo systemctl restart systemd-binfmt