mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-12-06 04:43:46 +00:00
92 lines
2.2 KiB
Text
92 lines
2.2 KiB
Text
# Template file for 'pepvoid'
|
|
OSNAME="pepvoid"
|
|
PRETTY="PepVoid"
|
|
LOGO=""
|
|
ICON="pepvoid.svg"
|
|
ICON_ONLINE=""
|
|
CATEGORY="Desktop, Live Medium"
|
|
BASEDOF="Void"
|
|
DESCRIPTION="Void Linux-based edition of Peppermint OS, providing a lightweight rolling-release desktop"
|
|
HOMEPAGE="https://peppermintos.org/PepVoid/"
|
|
CREDENTIALS=""
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
MAGNET=""
|
|
MAGNET_PREFERRED=""
|
|
TORRENT=""
|
|
CHAT=""
|
|
PEPVOID_URL="https://peppermintos.org/PepVoid"
|
|
|
|
RELEASES="current"
|
|
EDITIONS="loaded xlibre"
|
|
EDITIONS_LIST="loaded
|
|
xlibre"
|
|
QEMU_ARCH="amd64"
|
|
|
|
releases_() {
|
|
echo current
|
|
}
|
|
|
|
arch_() {
|
|
web_pipe "${PEPVOID_URL}/" | grep -oE 'pepvoid-[A-Za-z0-9_]+-linux' | sed 's/^pepvoid-//;s/-linux$//' | sort -u | while read -r _a; do
|
|
case "${_a}" in
|
|
x86_64) echo amd64 ;;
|
|
aarch64) echo arm64 ;;
|
|
*) echo "${_a}" ;;
|
|
esac
|
|
done | sort -u
|
|
}
|
|
|
|
editions_() {
|
|
web_pipe "${PEPVOID_URL}/" | grep -oE 'pepvoid-[^"]+\.iso' | sed 's/^pepvoid-//;s/\.iso$//' | while read -r _n; do
|
|
_libc=""
|
|
case "${_n}" in
|
|
*-musl-*) _libc="musl-" ;;
|
|
esac
|
|
_display="loaded"
|
|
case "${_n}" in
|
|
*-xlibre-*) _display="xlibre" ;;
|
|
esac
|
|
echo "${_libc}${_display}"
|
|
done | sort -u
|
|
}
|
|
|
|
get_() {
|
|
local URL="${PEPVOID_URL}"
|
|
local ARCH_UP
|
|
ARCH_UP=$(_qarch_to_upstream "${ARCH:-amd64}")
|
|
local ISO=""
|
|
local _needle=""
|
|
case "${EDITION}" in
|
|
loaded|flagship) _needle="linux-xfce-flagship.iso" ;;
|
|
xlibre|xlibre-flagship) _needle="xfce-xlibre-flagship.iso" ;;
|
|
musl|musl-flagship) _needle="musl-linux-xfce-flagship.iso" ;;
|
|
musl-xlibre|musl-xlibre-flagship) _needle="musl-linux-xfce-xlibre-flagship.iso" ;;
|
|
*) _needle="${EDITION}" ;;
|
|
esac
|
|
ISO=$(web_pipe "${URL}/" | grep -oE "pepvoid-${ARCH_UP}-[^\"']*\.iso" | grep -F "${_needle}" | head -n 1)
|
|
echo "${URL}/${ISO}"
|
|
}
|
|
|
|
releases_() {
|
|
# Releases parsed at generation time — no network access needed.
|
|
echo "${RELEASES}"
|
|
}
|
|
editions_() {
|
|
# Editions parsed at generation time — no network access needed.
|
|
local _scoped=""
|
|
if [ -n "${RELEASE:-}" ] && declare -F _release_editions_ >/dev/null; then
|
|
_scoped=$(_release_editions_ "${ARCH:-}|${RELEASE}")
|
|
fi
|
|
if [ -n "${_scoped}" ]; then
|
|
echo "${_scoped}"
|
|
return 0
|
|
fi
|
|
local _per_arch="EDITIONS_${ARCH:-}"
|
|
if [ -n "${!_per_arch:-}" ]; then
|
|
echo "${!_per_arch}"
|
|
return 0
|
|
fi
|
|
echo "${EDITIONS:-}"
|
|
}
|