From b7e929f11dec3e13e7a1a68e5802d15c7f6285ec Mon Sep 17 00:00:00 2001 From: zenobit Date: Thu, 19 Oct 2023 12:15:46 +0200 Subject: [PATCH] Add Athena OS --- quickget | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 4ea03d1fb8..ee02bfe78c 100755 --- a/quickget +++ b/quickget @@ -61,6 +61,7 @@ function pretty_name() { archlinux) PRETTY_NAME="Arch Linux";; archcraft) PRETTY_NAME="Archcraft";; arcolinux) PRETTY_NAME="Arco Linux";; + atheanos) PRETTY_NAME="Athena OS";; blendos) PRETTY_NAME="BlendOS";; cachyos) PRETTY_NAME="CachyOS";; centos-stream) PRETTY_NAME="CentOS Stream";; @@ -210,6 +211,7 @@ function os_support() { archlinux \ archcraft \ arcolinux \ + athenaos \ batocera \ blendos \ bodhi \ @@ -296,6 +298,7 @@ function os_homepages(){ archlinux) HOMEPAGE="https://archlinux.org/";; archcraft) HOMEPAGE="https://archcraft.io/";; arcolinux) HOMEPAGE="https://arcolinux.com/";; + athenaos) HOMEPAGE="https://athenaos.org/";; batocera) HOMEPAGE="https://batocera.org/";; blendos) HOMEPAGE="https://blendos.co/";; bodhi) HOMEPAGE="https://www.bodhilinux.com/";; @@ -418,6 +421,10 @@ function editions_arcolinux() { echo large small } +function releases_athenaos() { + wget -q -O- 'https://sourceforge.net/projects/athena-iso/rss?path=/' | grep '.iso/download"' | cut -d'=' -f5 | cut -d'"' -f2 | cut -d'/' -f7 | cut -d'v' -f2 | sed ':a;N;$!ba;s/\n/ /g' +} + function releases_blendos() { # Pull the rss feed @@ -1073,7 +1080,7 @@ EOF # OS specific tweaks case ${OS} in - alma|centos-stream|endless|garuda|nixos|oraclelinux|popos|rockylinux) + alma|athenaos|centos-stream|endless|garuda|nixos|oraclelinux|popos|rockylinux) echo "disk_size=\"32G\"" >> "${CONF_FILE}";; openindiana) echo "boot=\"legacy\"" >> "${CONF_FILE}" @@ -1262,6 +1269,25 @@ function get_arcolinux() { echo "${URL}/${ISO} ${HASH}" } +function get_athenaos() { + local HASH="" + local URL="" + local ISO="" + case ${RELEASE} in + rolling) + ISO="athena-rolling-x86_64.iso" + URL="https://sourceforge.net/projects/athena-iso/files/rolling" + HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1) + ;; + *) + ISO="athena-20${RELEASE}-x86_64.iso" + URL="https://sourceforge.net/projects/athena-iso/files/v${RELEASE}" + HASH=$(wget -q -O- 'https://sourceforge.net/projects/athena-iso/rss?path=/' | grep '.iso/download"' | grep "${RELEASE}" | cut -d '=' -f7 | cut -d'>' -f2 | cut -d'<' -f1) + ;; + esac + echo "${URL}/${ISO} ${HASH}" +} + function get_bunsenlabs() { local HASH="" local ISO="beryllium-1-amd64.hybrid.iso"