#!/bin/bash DESKTOP="lxqt" echo "=========================" echo "| ${DESKTOP} VOID x86_64 |" echo " ------------------------" CURRENT=https://alpha.de.repo.voidlinux.org/current MUTILIB=https://alpha.de.repo.voidlinux.org/current/multilib #NONFREE=https://repo.voidlinux.eu/current/nonfree FILENAME="void-live-${DESKTOP}-unofficial" DATE=$(date +%Y%m%d) KERNEL=$(uname -r) BUILDDIR="$(pwd)/build" #shift $((OPTIND - 1)) #: ${ARCH:=$(uname -m)} sudo ./mklive.sh \ -a x86_64 \ -r ${CURRENT} \ -r ${MUTILIB} \ -p "$(grep '^[^#].' ${DESKTOP}-x64.packages)" \ -T "Void Linux ${DESKTOP} Unofficial" \ -o ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso if [ ! -f ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso ];then echo "Error: ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso : does not exist! Aborting!" echo "ERR=1" > error-status.txt exit 1 fi sha256sum ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso >> sha256sums.txt if [ ! -f sha256sums.txt ];then echo "Missing checksum file, aborting!" echo "ERR=1" > error-status.txt exit 1 fi if [ ! -d "${BUILDDIR}" ];then mkdir ${BUILDDIR} fi mv ${FILENAME}-x86_64-${KERNEL}-${DATE}.iso build