📦 Athena OS

This commit is contained in:
zenobit 2023-10-19 12:15:46 +02:00 committed by Martin Wimpress
parent a2d2e570ea
commit 3843388258

View File

@ -71,6 +71,7 @@ function pretty_name() {
archcraft) PRETTY_NAME="Archcraft";;
arcolinux) PRETTY_NAME="Arco Linux";;
artixlinux) PRETTY_NAME="Artix Linux";;
atheanos) PRETTY_NAME="Athena OS";;
biglinux) PRETTY_NAME="BigLinux";;
blendos) PRETTY_NAME="BlendOS";;
cachyos) PRETTY_NAME="CachyOS";;
@ -223,6 +224,7 @@ function os_support() {
archcraft \
arcolinux \
artixlinux \
athenaos \
batocera \
biglinux \
blendos \
@ -313,6 +315,7 @@ function os_homepages(){
archcraft) HOMEPAGE="https://archcraft.io/";;
arcolinux) HOMEPAGE="https://arcolinux.com/";;
artixlinux) HOMEPAGE="https://artixlinux.org/";;
athenaos) HOMEPAGE="https://athenaos.org/";;
batocera) HOMEPAGE="https://batocera.org/";;
blendos) HOMEPAGE="https://blendos.co/";;
bodhi) HOMEPAGE="https://www.bodhilinux.com/";;
@ -474,22 +477,23 @@ function editions_artixlinux() {
community-qt-openrc
}
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_biglinux() {
echo kde
}
function releases_blendos() {
# Pull the rss feed
wget -q https://sourceforge.net/projects/blendos/rss?path=/ISOs/ -O- | grep -E -o 'https://.*blendOS\.iso.*</media:hash' >/tmp/blendos-isos.rss
# Pull the rss feed
wget -q https://sourceforge.net/projects/blendos/rss?path=/ISOs/ -O- | grep -E -o 'https://.*blendOS\.iso.*</media:hash' >/tmp/blendos-isos.rss
local RLIST
RLIST=$(grep -E -o 'https://.*blendOS\.iso.*</media:hash' /tmp/blendos-isos.rss | cut -d/ -f 8-9 | sort -r -t/ --key=2 |grep -e '16878' -e '168[8-9]')
echo ${RLIST}
}
function releases_bunsenlabs() {
echo latest
}
@ -1191,7 +1195,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}"
@ -1391,6 +1395,25 @@ function get_artixlinux() {
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"