1
0
mirror of synced 2024-11-25 00:00:27 +01:00
ImHex/dist/get_deps_debian.sh
DrivebyCoding 15a60930d2
build: Fix typo in Debian/Ubuntu dependencies script (#232)
The "!" parameter to if needs to be free-standing. As is the script always outputs this on Ubuntu 20.04:

./get_deps_debian.sh: 8: !which: not found
2021-09-21 21:33:34 +02:00

32 lines
854 B
Bash
Executable File

#!/usr/bin/env sh
echo "As of 2020-12, Debian stable does not include g++-10, needs debian testing or unstable."
# Tested on 2020-12-09 with Docker image bitnami/minideb:unstable
# Install pkgconf (adds minimum dependencies) only if the equivalent pkf-config is not already installed.
if ! which pkg-config
then
PKGCONF="pkgconf"
fi
apt install -y \
build-essential \
gcc-10 \
g++-10 \
${PKGCONF:-} \
cmake \
make \
ccache \
libglfw3-dev \
libglm-dev \
libmagic-dev \
libmbedtls-dev \
libcapstone-dev \
python3-dev \
libfreetype-dev \
libgtk-3-dev \
echo "Please consider this before running cmake (useful on e.g. Ubuntu 20.04):"
echo "export CXX=g++-10"