DistroHopper/actions/pclinuxos
Claude 6d921d220e
Fix bugs in dh, pclinuxos; add easyos, fedora, mageia, zorin actions
- dh: fix comment with stray '#TODO' in desktop entry
- dh: fix silent unconditional exit bug in renew_ready() and
  renew_ready_vms() (cd || echo; exit 1 → cd || { echo; exit 1; })
- dh: implement distrohopper_about() and help_show() using yad dialogs
- dh: fix renew_supported_vms() logic where execmd was never set when
  editions existed and interminal=yes; separate terminal flag from
  execmd assignment
- dh: detect available terminal emulator (sakura → xterm → x-terminal-emulator)
  instead of hard-coding sakura
- actions/pclinuxos: fix URL variable used before definition in get_()
- actions/: add easyos, fedora, mageia, zorin from TODO/ (complete implementations)

https://claude.ai/code/session_01M2UXTtQwzcGCNRnFiP2efQ
2026-02-28 19:25:15 +00:00

32 lines
1 KiB
Text

# Template file for 'pclinuxos'
OSNAME="pclinuxos"
PRETTY="PCLinuxOS"
ORIGIN="Independent"
HOMEPAGE="https://www.pclinuxos.com"
DESCRIPTION="Free, easy to use Linux-based Operating System for x86_64 desktops or laptops"
CREDENTIALS="-"
function releases_() {
# shellcheck disable=SC2046
echo $(web_pipe "https://ftp.fau.de/pclinuxos/pclinuxos/iso" | grep -oP 'pclinuxos64-\K[^\-]+-\K[0-9]+\.[0-9]+' | head -n 1)
}
function editions_() {
echo kde kde-darkstar mate xfce
}
function get_() {
# shellcheck disable=SC2155
case ${EDITION} in
mate) RELEASE="${RELEASE//./-}";;
# in case an edition is added that uses the mate style and sorts higher
kde|kde-darkstar) RELEASE="${RELEASE//-/.}";;
xfce) RELEASE="${RELEASE//-/.}";;
*) ;;
esac
local URL="https://ftp.fau.de/pclinuxos/pclinuxos/iso"
local ISO="pclinuxos64-${EDITION}-${RELEASE}.iso"
# shellcheck disable=SC2155
local HASH="$(web_pipe "${URL}/pclinuxos64-${EDITION}-${RELEASE}.md5sum" | head -c 32)"
echo "${URL}/${ISO} ${HASH}"
}