mirror of
https://github.com/ffrgb/site-ffrgb.git
synced 2024-12-27 19:31:51 +01:00
41 lines
721 B
Bash
41 lines
721 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
set -eux
|
||
|
|
||
|
# Verify that the script is running in Ubuntu
|
||
|
. /etc/lsb-release
|
||
|
if [ "$DISTRIB_ID" != "Ubuntu" ]; then
|
||
|
echo "Error: This script only works in Ubuntu"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
# Avoid tzdata from asking which timezone to choose
|
||
|
export DEBIAN_FRONTEND=noninteractive
|
||
|
|
||
|
apt-get update
|
||
|
|
||
|
# ca-certificates required for Github git cloning
|
||
|
apt-get -y --no-install-recommends install ca-certificates
|
||
|
|
||
|
# Install build environment
|
||
|
apt-get -y --no-install-recommends install \
|
||
|
bash \
|
||
|
bzip2 \
|
||
|
curl \
|
||
|
diffutils \
|
||
|
file \
|
||
|
g++ \
|
||
|
gawk \
|
||
|
gcc \
|
||
|
git \
|
||
|
libncurses5-dev \
|
||
|
make \
|
||
|
patch \
|
||
|
perl \
|
||
|
python3 \
|
||
|
qemu-utils \
|
||
|
rsync \
|
||
|
tar \
|
||
|
unzip \
|
||
|
wget
|