Files
debos/docker/get-archlinux-keyring.sh
Sjoerd Simons e869a3c887 docker: Use prebuild archlinux keyring
Currently rebuilding the arch keyring on Debian bookworm is broken as
the build depends  on newer sq options. There is no reason to re-build
the keyring though, debian also uses a pre-build version to package it
for example.

Switch to use a script to download the latest release from arch gitlab

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
2024-02-26 21:11:54 +01:00

14 lines
435 B
Bash
Executable File

#!/bin/bash
LINK=https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/releases/permalink/latest
TARGET="${1:-.}"
RELEASE=$(curl -s -I -o /dev/null -w '%header{location}\n' \
${LINK} \
| sed 's/.*\///')
echo Arch keyring release ${RELEASE}
echo Installing to ${TARGET}
mkdir -p ${TARGET}
curl -s -L ${LINK}/downloads/archlinux-keyring-${RELEASE}.tar.gz \
| tar xvz --strip-components=1 -C ${TARGET}