You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
641 B
Bash
22 lines
641 B
Bash
#!/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 "box86 already exists on your system. Moving the old version to Trash..."
|
|
gio trash ~/box86
|
|
fi
|
|
|
|
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
|