DistroHopper/public/sparkylinux
2026-05-27 17:00:06 +02:00

49 lines
1.5 KiB
Text

# Template file for 'sparkylinux'
OSNAME="sparkylinux"
PRETTY="SparkyLinux"
LOGO=""
ICON="sparky.png"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/sparky.png"
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=""
CHAT=""
RELEASES="8.3.1 8.3"
EDITIONS="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
#shellcheck disable=SC2046,SC2005
# if [ -z "${RELEASE}" ]; then
# web_pipe "https://sparkylinux.org/download/stable/" | grep "iso/download" | cut -d'-' -f5 | cut -d'.' -f1 | sort -u
# else
# web_pipe "https://sparkylinux.org/download/stable/" | grep "sparkylinux-${RELEASE}-" | cut -d'-' -f5 | cut -d'.' -f1 | sort -u
# fi
}
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}"
}