mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-12-06 04:43:46 +00:00
64 lines
1.4 KiB
Text
64 lines
1.4 KiB
Text
# Template file for 'chimera-linux'
|
|
OSNAME="chimera-linux"
|
|
PRETTY="Chimera Linux"
|
|
LOGO=""
|
|
ICON="chimera-linux.svg"
|
|
ICON_ONLINE=""
|
|
CATEGORY="Desktop, Live Medium, Raspberry Pi, Server"
|
|
BASEDOF="-"
|
|
DESCRIPTION="Modern, general-purpose non-GNU Linux distribution"
|
|
HOMEPAGE="https://chimera-linux.org"
|
|
CREDENTIALS="anon:chimera root:chimera"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
MAGNET=""
|
|
MAGNET_PREFERRED=""
|
|
TORRENT=""
|
|
CHAT=""
|
|
|
|
RELEASES="latest"
|
|
EDITIONS="base gnome"
|
|
EDITIONS_LIST="base
|
|
gnome"
|
|
QEMU_ARCH="amd64"
|
|
|
|
releases_() {
|
|
echo latest
|
|
}
|
|
|
|
editions_() {
|
|
echo base gnome
|
|
}
|
|
|
|
get_() {
|
|
local DATE=""
|
|
local HASH=""
|
|
local URL="https://repo.chimera-linux.org/live/${RELEASE}"
|
|
DATE=$(web_pipe "${URL}/sha256sums.txt" | head -n1 | cut -d'-' -f5)
|
|
local ISO="chimera-linux-x86_64-LIVE-${DATE}-${EDITION}.iso"
|
|
HASH=$(web_pipe "${URL}/sha256sums.txt" | grep 'x86_64-LIVE' | grep "${EDITION}" | cut -d' ' -f1)
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|
|
|
|
releases_() {
|
|
# Releases parsed at generation time — no network access needed.
|
|
echo "${RELEASES}"
|
|
}
|
|
editions_() {
|
|
# Editions parsed at generation time — no network access needed.
|
|
local _scoped=""
|
|
if [ -n "${RELEASE:-}" ] && declare -F _release_editions_ >/dev/null; then
|
|
_scoped=$(_release_editions_ "${ARCH:-}|${RELEASE}")
|
|
fi
|
|
if [ -n "${_scoped}" ]; then
|
|
echo "${_scoped}"
|
|
return 0
|
|
fi
|
|
local _per_arch="EDITIONS_${ARCH:-}"
|
|
if [ -n "${!_per_arch:-}" ]; then
|
|
echo "${!_per_arch}"
|
|
return 0
|
|
fi
|
|
echo "${EDITIONS:-}"
|
|
}
|