📦 SparkyLinux

This commit is contained in:
zenobit 2023-10-08 04:26:05 +02:00 committed by Martin Wimpress
parent 4c6c078d3c
commit bce0dbffbe
1 changed files with 29 additions and 0 deletions

View File

@ -114,6 +114,7 @@ function pretty_name() {
rockylinux) PRETTY_NAME="Rocky Linux";;
slint) PRETTY_NAME="Slint";;
slitaz) PRETTY_NAME="SliTaz GNU/Linux";;
sparkylinux) PRETTY_NAME="SparkyLinux";;
tinycore) PRETTY_NAME="Tiny Core Linux";;
truenas-core) PRETTY_NAME="TrueNAS Core";;
truenas-scale) PRETTY_NAME="TrueNAS Scale";;
@ -295,6 +296,7 @@ function os_support() {
slint \
slitaz \
solus \
sparkylinux \
spiral \
tails \
tinycore \
@ -396,6 +398,7 @@ function os_homepages(){
slint) HOMEPAGE="https://slint.fr/";;
slitaz) HOMEPAGE="https://www.slitaz.org/";;
solus) HOMEPAGE="https://getsol.us/";;
sparkylinux) HOMEPAGE="https://sparkylinux.org/";;
spiral) HOMEPAGE="https://spirallinux.github.io/";;
tails) HOMEPAGE="https://tails.net/";;
tinycore) HOMEPAGE="http://www.tinycorelinux.net/";;
@ -911,6 +914,15 @@ function editions_solus() {
echo Budgie GNOME MATE Plasma
}
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 releases_spiral() {
echo latest
}
@ -2451,6 +2463,23 @@ function get_solus() {
echo "${URL}/${ISO} ${HASH}"
}
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 -d' ' -f1)
echo "${URL}/${ISO}" "${HASH}"
}
function get_spiral() {
local EDITION="${1:-}"
local HASH=""