DistroHopper/public/sparkylinux
2026-11-29 05:46:38 +01:00

73 lines
1.8 KiB
Text

# Template file for 'sparkylinux'
OSNAME="sparkylinux"
PRETTY="SparkyLinux"
LOGO=""
ICON="sparkylinux.svg"
ICON_ONLINE=""
CATEGORY="Desktop, Live Medium"
BASEDOF="Debian"
DESCRIPTION="Fast, lightweight and fully customizable operating system which offers several versions for different use cases"
HOMEPAGE="https://sparkylinux.org"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
MAGNET=""
MAGNET_PREFERRED=""
TORRENT=""
CHAT=""
RELEASES="8.4"
EDITIONS="kde lxqt mate minimalcli minimalgui xfce"
EDITIONS_LIST="kde
lxqt
mate
minimalcli
minimalgui
xfce"
QEMU_ARCH="amd64"
releases_() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://sparkylinux.org/download/stable/" | grep "iso/download" | cut -d'-' -f3 | sort -ru)
}
editions_() {
echo minimalcli minimalgui mate lxqt kde xfce
}
get_() {
local HASH=""
local ISO=""
local URL=""
ISO="sparkylinux-${RELEASE}-x86_64-${EDITION}.iso"
case ${EDITION} in
minimalcli) URL="https://sourceforge.net/projects/sparkylinux/files/cli";;
minimalgui) URL="https://sourceforge.net/projects/sparkylinux/files/base";;
*) URL="https://sourceforge.net/projects/sparkylinux/files/${EDITION}";;
esac
HASH=$(web_pipe "${URL}/${ISO}.allsums.txt" | head -n 2 | grep 'iso' | 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:-}"
}