Files
photoview/dependencies/prepare.sh
Googol Lee 35e65caf7c Update dependencies with Debian trixie (#1285)
* Update dep to trixie.

* Update image tag.
2025-08-20 16:39:36 +02:00

32 lines
679 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
: "${TARGETPLATFORM:=linux/$(dpkg --print-architecture)}"
TARGETARCH="$(echo "$TARGETPLATFORM" | cut -d"/" -f2)"
DEBIAN_ARCH=$TARGETARCH
if [ "$TARGETARCH" = "arm" ]; then
DEBIAN_ARCH=armel
fi
dpkg --add-architecture "$DEBIAN_ARCH"
apt-get update
apt-get install -y \
curl \
jq \
ca-certificates \
crossbuild-essential-"${DEBIAN_ARCH}" \
libc-dev:"${DEBIAN_ARCH}" \
dpkg-dev \
autoconf \
automake \
libtool \
m4 \
pkg-config \
cmake
dpkg-architecture -a "$DEBIAN_ARCH" >/env
echo "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/$(dpkg-architecture -a "$DEBIAN_ARCH" -qDEB_HOST_MULTIARCH)/pkgconfig" >>/env
cat /env