Add Loc-OS Linux

This commit is contained in:
zenobit 2025-02-17 07:41:28 +01:00
parent 7323092109
commit d9cbba0edb
2 changed files with 35 additions and 0 deletions

26
actions/loc-os Normal file
View File

@ -0,0 +1,26 @@
# Template file for 'loc-os'
OSNAME="loc-os"
PRETTY="Loc-OS Linux"
BASEDOF="Debian"
HOMEPAGE="https://loc-os.com"
DESCRIPTION="Distribution of GNU/Linux focused on low resource consumption."
CREDENTIALS="-"
function releases_() {
echo latest
}
function editions_() {
echo lxde xfce kde
}
function get_() {
local HASH=""
local REL=$(echo "${EDITION}" | tr '[:lower:]' '[:upper:]')
URL="https://sourceforge.net/projects/loc-os/files"
REST_URL=$(web_pipe "https://sourceforge.net/projects/loc-os/rss?path=/" | grep 'title><!\[CDATA' | cut -d'[' -f3 | cut -d']' -f1 | grep '64\.iso' | grep "${REL}" | head -1)
REST="Loc-OS%2023"
URL="${URL}/${REST}"
ISO=$(echo "${REST_URL}" | cut -d'/' -f3)
echo "${URL}/${ISO}"
}

9
public/loc-os Normal file
View File

@ -0,0 +1,9 @@
# Template file for 'loc-os'
OSNAME="loc-os"
PRETTY="Loc-OS Linux"
BASEDOF="Debian"
DESCRIPTION="Distribution of GNU/Linux focused on low resource consumption."
HOMEPAGE="https://loc-os.com"
CREDENTIALS="-"
RELEASES="latest"
EDITIONS="xfce lxde kde"