Switch to Debian testing and imagemagick. (#1021)

This commit is contained in:
Googol Lee
2024-08-29 10:30:06 +02:00
committed by GitHub
parent 6c5c304492
commit ad13172a32
17 changed files with 191 additions and 75 deletions

View File

@@ -0,0 +1,13 @@
Types: deb
# http://snapshot.debian.org/archive/debian/20240722T000000Z
URIs: http://deb.debian.org/debian
Suites: testing testing-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
# http://snapshot.debian.org/archive/debian-security/20240722T000000Z
URIs: http://deb.debian.org/debian-security
Suites: testing-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

11
scripts/apt/default.pref Normal file
View File

@@ -0,0 +1,11 @@
Package: *
Pin: release n=bookworm
Pin-Priority: 700
Package: *
Pin: release n=bookworm-updates
Pin-Priority: 700
Package: *
Pin: release n=bookworm-security
Pin-Priority: 700

View File

@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -euo pipefail
if [ "$TARGETPLATFORM" == "linux/arm64" ]; then
dpkg --add-architecture arm64

View File

@@ -1,22 +1,10 @@
#!/bin/bash
set -euo pipefail
apt-get update
apt-get install -y curl libdlib19.1 ffmpeg exiftool libheif1
# Install Darktable if building for a supported architecture
if [ "${TARGETPLATFORM}" = "linux/amd64" ] || [ "${TARGETPLATFORM}" = "linux/arm64" ]; then
echo 'deb [trusted=true] https://download.opensuse.org/repositories/graphics:/darktable/Debian_12/ /' > /etc/apt/sources.list.d/darktable.list
# Release key is invalid, just trust the repo
curl -fsSL https://download.opensuse.org/repositories/graphics:/darktable/Debian_12/Release.key \
| gpg --dearmor -o /etc/apt/trusted.gpg.d/darktable.gpg
gpg --show-keys --with-fingerprint --dry-run /etc/apt/trusted.gpg.d/darktable.gpg
apt-get update
apt-get install -y darktable
fi
apt-get install -y curl libdlib19.2 ffmpeg exiftool libheif1 imagemagick
# Remove build dependencies and cleanup
apt-get purge -y ${BUILD_DEPENDS[@]}
apt-get autoremove -y
apt-get clean
rm -rf /var/lib/apt/lists/*