DistroHopper/templates/siduction
2026-11-17 18:32:48 +01:00

55 lines
1.5 KiB
Text

# Template file for 'siduction'
OSNAME="siduction"
PRETTY="siduction"
LOGO=""
ICON="siduction.svg"
CATEGORY="advanced"
BASEDOF="Debian"
HOMEPAGE="https://siduction.org"
DESCRIPTION="Operating system based on the Linux kernel and the GNU project. In addition, there are applications and libraries from Debian"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
function releases_() {
web_pipe "https://mirror.math.princeton.edu/pub/siduction/iso/" \
| grep -oE 'href="[^"]+/"' \
| cut -d'"' -f2 \
| sed 's#/$##' \
| grep -E '^[[:alnum:]_.-]+$' \
| sort -Vr
}
function editions_() {
local SELECTED_RELEASE="${RELEASE:-$(releases_ | head -n 1)}"
local URL="https://mirror.math.princeton.edu/pub/siduction/iso/${SELECTED_RELEASE}"
for EDITION_NAME in $(web_pipe "${URL}/" \
| grep -oE 'href="[^"]+/"' \
| cut -d'"' -f2 \
| sed 's#/$##' \
| grep -E '^[[:alnum:]_.-]+$' \
| sort -u); do
if web_pipe "${URL}/${EDITION_NAME}/" \
| grep -oE 'siduction-[^"/ ]+\.iso' \
| grep -Fq -- "-${SELECTED_RELEASE}-${EDITION_NAME}-amd64-"; then
echo "${EDITION_NAME}"
fi
done
}
function get_() {
local HASH=""
local ISO=""
local URL="https://mirror.math.princeton.edu/pub/siduction/iso/${RELEASE}/${EDITION}"
ISO=$(web_pipe "${URL}/" \
| grep -oE 'siduction-[^"/ ]+\.iso' \
| grep -F -- "-${RELEASE}-${EDITION}-amd64-" \
| sort -Vr \
| head -n 1)
[ -n "${ISO}" ] || return 1
HASH=$(web_pipe "${URL}/${ISO}.sha256" \
| awk -v iso="${ISO}" '$2 == iso && length($1) == 64 {print $1; exit}')
echo "${URL}/${ISO} ${HASH}"
}