mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 09:32:21 +00:00
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
# Template file for 'void'
|
|
OSNAME="void"
|
|
PRETTY="Void Linux"
|
|
LOGO=" "
|
|
ICON="void.svg"
|
|
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/void.png"
|
|
CATEGORY="advanced"
|
|
BASEDOF="-"
|
|
HOMEPAGE="https://voidlinux.org"
|
|
DESCRIPTION="General purpose operating system. Its package system allows you to quickly install, update and remove software; software is provided in binary packages or can be built directly from sources"
|
|
CREDENTIALS="anon:voidlinux root:voidlinux"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
|
|
function releases_() {
|
|
echo current
|
|
}
|
|
|
|
function editions_() {
|
|
echo glibc musl xfce-glibc xfce-musl
|
|
}
|
|
|
|
function arch_() {
|
|
echo "amd64 arm64 i686"
|
|
}
|
|
|
|
function get_() {
|
|
local DATE="" HASH="" ISO="" VARIANT="" QEMU_ARCH=""
|
|
local URL="https://repo-default.voidlinux.org/live/current"
|
|
|
|
case "${EDITION}" in
|
|
glibc) VARIANT="base";;
|
|
musl) VARIANT="musl";;
|
|
xfce-glibc) VARIANT="xfce";;
|
|
xfce-musl) VARIANT="xfce-musl";;
|
|
esac
|
|
|
|
QEMU_ARCH=$(_qarch_to_upstream "${ARCH:-amd64}")
|
|
|
|
# Different parsing for i686 (date is in different position)
|
|
if [ "${ARCH}" == "i686" ]; then
|
|
DATE=$(web_pipe "$URL" | grep "^<a href=\"void-live-i686-" | tail -1 | sed 's/.*void-live-i686-\(.*\)-.*/\1/' | cut -d'-' -f1)
|
|
else
|
|
DATE=$(web_pipe "$URL" | grep "^<a href=\"void-live-${QEMU_ARCH}-" | cut -d'-' -f5 | tail -1)
|
|
fi
|
|
ISO="void-live-${QEMU_ARCH}-${DATE}-${VARIANT}.iso"
|
|
HASH="$(web_pipe "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)"
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|