30 lines
1.6 KiB
Bash
Executable File
30 lines
1.6 KiB
Bash
Executable File
|
|
set -e
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends \
|
|
python3-requests python3-urllib3 libgdk-pixbuf-2.0-0 && \
|
|
apt-get install -f -y && \
|
|
dpkg --configure -a
|
|
apt-get install -f -y autoconf curl g++ make ninja-build devscripts fakeroot debhelper git nasm libgbm-dev libdrm-dev libasound2-dev libdbus-1-dev libegl1-mesa-dev libgl1-mesa-dev libgles2-mesa-dev libglu1-mesa-dev libibus-1.0-dev libpulse-dev libudev-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev cmake libgl-dev meson wayland-protocols libwayland-dev libdecor-0-dev libfreetype-dev libfreetype6-dev libharfbuzz-dev libpipewire-0.3-dev
|
|
apt-get install -f -y --no-install-recommends libssl-dev qt6-base-dev qt6-declarative-dev libqt6svg6-dev libopus-dev gnupg
|
|
|
|
# Install FFmpeg if we're using the OS-provided version
|
|
if [ "$TARGET" == "rpi" ] || [ "$TARGET" == "rpi64" ]; then
|
|
apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
|
|
fi
|
|
|
|
# This is no longer a separate package on modern distros
|
|
if [ "$DISTRO" == "jammy" ]; then
|
|
apt-get install -y libqt6opengl6-dev
|
|
fi
|
|
|
|
if [ "$TARGET" == "embedded" ] && [ "$DISTRO" != "sid" ] && [ "$DISTRO" != "trixie" ]; then
|
|
# Grab latest kernel headers from Bookworm to pick up the latest V4L2 defs
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6ED0E7B82643E131
|
|
echo "deb http://deb.debian.org/debian bookworm-backports main" >> /etc/apt/sources.list
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends linux-libc-dev/bookworm-backports
|
|
fi
|