Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SparkyLinux #799

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function pretty_name() {
reactos) PRETTY_NAME="ReactOS";;
rebornos) PRETTY_NAME="RebornOS";;
rockylinux) PRETTY_NAME="Rocky Linux";;
sparkylinux) PRETTY_NAME="SparkyLinux";;
tinycore) PRETTY_NAME="Tiny Core Linux";;
truenas-core) PRETTY_NAME="TrueNAS Core";;
truenas-scale) PRETTY_NAME="TrueNAS Scale";;
Expand Down Expand Up @@ -261,6 +262,7 @@ function os_support() {
siduction \
slackware \
solus \
sparkylinux \
spiral \
tails \
tinycore \
Expand Down Expand Up @@ -347,6 +349,7 @@ function os_homepages(){
siduction) HOMEPAGE="https://siduction.org/";;
slackware) HOMEPAGE="http://www.slackware.com/";;
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/";;
Expand Down Expand Up @@ -758,6 +761,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
}
Expand Down Expand Up @@ -1964,6 +1976,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=""
Expand Down