mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-07-28 19:38:45 +00:00
32 lines
679 B
Bash
Executable File
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
|