mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 17:36:40 +00:00
26 lines
1 KiB
Text
26 lines
1 KiB
Text
INFO="SparkyLinux|Debian||https://sparkylinux.org/|Fast, lightweight and fully customizable operating system which offers several versions for different use cases.";;
|
|
|
|
function releases_sparkylinux() {
|
|
local SPARKY_RELEASES=$(wget -qO- "https://sourceforge.net/projects/sparkylinux/rss?path=/" | grep 'link' | grep '.iso' | cut -d'-' -f2 | uniq | tr '\r\n' ' ')
|
|
echo "${SPARKY_RELEASES}"
|
|
}
|
|
|
|
function editions_sparkylinux() {
|
|
echo lxqt mate xfce kde minimalgui minimalcli gameover multimedia rescue
|
|
}
|
|
|
|
function get_sparkylinux() {
|
|
local EDITION="${1:-}"
|
|
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=$(wget -q -O- "${URL}/${ISO}.allsums.txt" | head -2 | grep 'iso' | cut_1)
|
|
echo "${URL}/${ISO}" "${HASH}"
|
|
}
|