33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
# Template file for 'siduction'
|
|
OSNAME="siduction"
|
|
PRETTY="siduction"
|
|
BASEDOF="Debian"
|
|
HOMEPAGE="https://siduction.org"
|
|
DESCRIPTION="Operating system based on the Linux kernel and the GNU project. In addition, there are applications and libraries from Debian"
|
|
CREDENTIALS="-"
|
|
|
|
function releases_() {
|
|
echo latest
|
|
}
|
|
|
|
function editions_() {
|
|
#shellcheck disable=SC2046,SC2005
|
|
NAME=$(web_pipe "https://mirror.math.princeton.edu/pub/siduction/iso/" | grep folder | cut -d'"' -f8 | tr -d '/')
|
|
web_pipe "https://mirror.math.princeton.edu/pub/siduction/iso/${NAME}/" | grep folder | cut -d'"' -f8 | tr -d '/' | sort -u
|
|
}
|
|
|
|
function get_() {
|
|
local HASH=""
|
|
local DATE=""
|
|
local ISO=""
|
|
local NAME=""
|
|
local URL=""
|
|
NAME=$(web_pipe "https://mirror.math.princeton.edu/pub/siduction/iso/" | grep folder | cut -d'"' -f8 | tr -d '/')
|
|
URL="https://mirrors.dotsrc.org/siduction/iso/${NAME}/${EDITION}"
|
|
DATE=$(web_pipe "${URL}"| grep .iso.md5 | cut -d'-' -f6 | cut -d'.' -f1)
|
|
HASH=$(web_pipe "${URL}/${ISO}.md5" | cut -d' ' -f1)
|
|
VERSION=$(web_pipe "${URL}"| grep .iso.md5 | cut -d'-' -f2)
|
|
ISO="siduction-${VERSION}-${NAME}-${EDITION}-amd64-${DATE}.iso"
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|