59 lines
974 B
Bash
59 lines
974 B
Bash
#!/usr/bin/env bash
|
|||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
export DEBIAN_FRONTEND=noninteractive
|
||
|
|
|
||
|
|
sudo apt-get update
|
||
|
|
|
||
|
|
sudo apt-get install -y \
|
||
|
|
bc \
|
||
|
|
bison \
|
||
|
|
build-essential \
|
||
|
|
chrpath \
|
||
|
|
cpio \
|
||
|
|
curl \
|
||
|
|
debianutils \
|
||
|
|
diffstat \
|
||
|
|
file \
|
||
|
|
flex \
|
||
|
|
gawk \
|
||
|
|
gcc \
|
||
|
|
git \
|
||
|
|
iputils-ping \
|
||
|
|
libncurses-dev \
|
||
|
|
libncurses5 \
|
||
|
|
libssl-dev \
|
||
|
|
libtinfo5 \
|
||
|
|
locales \
|
||
|
|
lz4 \
|
||
|
|
net-tools \
|
||
|
|
python-is-python3 \
|
||
|
|
python3 \
|
||
|
|
python3-git \
|
||
|
|
python3-jinja2 \
|
||
|
|
python3-pexpect \
|
||
|
|
python3-pip \
|
||
|
|
python3-pycryptodome \
|
||
|
|
python3-subunit \
|
||
|
|
rsync \
|
||
|
|
socat \
|
||
|
|
texinfo \
|
||
|
|
unzip \
|
||
|
|
wget \
|
||
|
|
xz-utils \
|
||
|
|
zstd
|
||
|
|
|
||
|
|
if ! command -v repo >/dev/null 2>&1; then
|
||
|
|
mkdir -p "$HOME/.bin"
|
||
|
|
curl -fsSL https://storage.googleapis.com/git-repo-downloads/repo -o "$HOME/.bin/repo"
|
||
|
|
chmod +x "$HOME/.bin/repo"
|
||
|
|
echo 'export PATH="$HOME/.bin:$PATH"' >> "$HOME/.profile"
|
||
|
|
fi
|
||
|
|
|
||
|
|
python - <<'PY'
|
||
|
|
import Crypto.Signature
|
||
|
|
print("python Crypto.Signature ok")
|
||
|
|
PY
|
||
|
|
|
||
|
|
echo "UniSoc build dependencies are ready."
|