DistroHopper/templates/archcraft
2026-05-27 17:00:06 +02:00

36 lines
984 B
Text

# Template file for 'archcraft'
OSNAME="archcraft"
PRETTY="Archcraft"
LOGO=""
ICON="archcraft.svg"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/archcraft.png"
CATEGORY="Advanced"
BASEDOF="Arch"
HOMEPAGE="https://archcraft.io"
DESCRIPTION="Yet another minimal Linux distribution, based on Arch Linux"
CREDENTIALS="-"
GPG=""
RSS="https://sourceforge.net/projects/archcraft/rss?path=/"
DW=""
function releases_() {
echo latest
}
function get_() {
local HASH=""
local ISO=""
local URL=""
local RSS_ISO
RSS_ISO=$(web_pipe "https://sourceforge.net/projects/archcraft/rss?path=/" | grep -oP '(?<=<link>)[^<]*\.iso(?=/download)' | head -1)
ISO=$(basename "${RSS_ISO}")
local VER
VER=$(echo "${RSS_ISO}" | grep -oP '(?<=/files/)[^/]+')
URL="https://sourceforge.net/projects/archcraft/files/${VER}/${ISO}"
HASH=$(web_pipe "${URL}.sha256sum/download" | awk '{print $1}')
echo "${URL}/download ${HASH}"
}
function config_() {
echo "disk_size=\"32G\"" >> "${CONF_FILE}"
}