#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.3 # Package: KDE6-games #=========================== # DB commit: f64c98382982c764c3ba140bfcbbc73d93096acd # APP commit: e09dc78145b10de9481608254eb2ac99efd0068b #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: KDE6-games" echo "Release: 0.2.3" downloadFile() { local filename=$1 echo "Downloading $filename ..." if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl -k -O $filename else wget --no-check-certificate -nc $filename fi } echo "loading environment settings(profile)" . /etc/profile echo "checking config file" if [ -f $ULFS_CONFIG_FILE ] then echo "loading config file $ULFS_CONFIG_FILE..." . $ULFS_CONFIG_FILE fi #Creating log directory mkdir -p /var/log/ulfs-packages/KDE6-games/ #Saving start timestamp date +%s > /var/log/ulfs-packages/KDE6-games/start.time #Going to source directory... cd /sources #Checking dependances... #Checking bomber... if [ ! -f /var/cache/ulfs-packages/bomber ]; then echo "Dependance \"bomber\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/bomber/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/bomber/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/bomber ]; then echo "Dependance \"bomber\" is not installed. Exiting..." exit fi fi #Checking bovo... if [ ! -f /var/cache/ulfs-packages/bovo ]; then echo "Dependance \"bovo\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/bovo/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/bovo/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/bovo ]; then echo "Dependance \"bovo\" is not installed. Exiting..." exit fi fi #Checking granatier... if [ ! -f /var/cache/ulfs-packages/granatier ]; then echo "Dependance \"granatier\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/granatier/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/granatier/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/granatier ]; then echo "Dependance \"granatier\" is not installed. Exiting..." exit fi fi #Checking kajongg... if [ ! -f /var/cache/ulfs-packages/kajongg ]; then echo "Dependance \"kajongg\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kajongg/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kajongg/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kajongg ]; then echo "Dependance \"kajongg\" is not installed. Exiting..." exit fi fi #Checking kapman... if [ ! -f /var/cache/ulfs-packages/kapman ]; then echo "Dependance \"kapman\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kapman/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kapman/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kapman ]; then echo "Dependance \"kapman\" is not installed. Exiting..." exit fi fi #Checking katomic... if [ ! -f /var/cache/ulfs-packages/katomic ]; then echo "Dependance \"katomic\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/katomic/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/katomic/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/katomic ]; then echo "Dependance \"katomic\" is not installed. Exiting..." exit fi fi #Checking kblackbox... if [ ! -f /var/cache/ulfs-packages/kblackbox ]; then echo "Dependance \"kblackbox\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kblackbox/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kblackbox/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kblackbox ]; then echo "Dependance \"kblackbox\" is not installed. Exiting..." exit fi fi #Checking kblocks... if [ ! -f /var/cache/ulfs-packages/kblocks ]; then echo "Dependance \"kblocks\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kblocks/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kblocks/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kblocks ]; then echo "Dependance \"kblocks\" is not installed. Exiting..." exit fi fi #Checking kbounce... if [ ! -f /var/cache/ulfs-packages/kbounce ]; then echo "Dependance \"kbounce\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kbounce/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kbounce/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kbounce ]; then echo "Dependance \"kbounce\" is not installed. Exiting..." exit fi fi #Checking kbreakout... if [ ! -f /var/cache/ulfs-packages/kbreakout ]; then echo "Dependance \"kbreakout\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kbreakout/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kbreakout/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kbreakout ]; then echo "Dependance \"kbreakout\" is not installed. Exiting..." exit fi fi #Checking kdiamond... if [ ! -f /var/cache/ulfs-packages/kdiamond ]; then echo "Dependance \"kdiamond\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdiamond/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdiamond/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdiamond ]; then echo "Dependance \"kdiamond\" is not installed. Exiting..." exit fi fi #Checking kfourinline... if [ ! -f /var/cache/ulfs-packages/kfourinline ]; then echo "Dependance \"kfourinline\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kfourinline/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kfourinline/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kfourinline ]; then echo "Dependance \"kfourinline\" is not installed. Exiting..." exit fi fi #Checking kgoldrunner... if [ ! -f /var/cache/ulfs-packages/kgoldrunner ]; then echo "Dependance \"kgoldrunner\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kgoldrunner/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kgoldrunner/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kgoldrunner ]; then echo "Dependance \"kgoldrunner\" is not installed. Exiting..." exit fi fi #Checking kigo... if [ ! -f /var/cache/ulfs-packages/kigo ]; then echo "Dependance \"kigo\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kigo/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kigo/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kigo ]; then echo "Dependance \"kigo\" is not installed. Exiting..." exit fi fi #Checking killbots... if [ ! -f /var/cache/ulfs-packages/killbots ]; then echo "Dependance \"killbots\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/killbots/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/killbots/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/killbots ]; then echo "Dependance \"killbots\" is not installed. Exiting..." exit fi fi #Checking kiriki... if [ ! -f /var/cache/ulfs-packages/kiriki ]; then echo "Dependance \"kiriki\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kiriki/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kiriki/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kiriki ]; then echo "Dependance \"kiriki\" is not installed. Exiting..." exit fi fi #Checking kjumpingcube... if [ ! -f /var/cache/ulfs-packages/kjumpingcube ]; then echo "Dependance \"kjumpingcube\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kjumpingcube/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kjumpingcube/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kjumpingcube ]; then echo "Dependance \"kjumpingcube\" is not installed. Exiting..." exit fi fi #Checking klickety... if [ ! -f /var/cache/ulfs-packages/klickety ]; then echo "Dependance \"klickety\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/klickety/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/klickety/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/klickety ]; then echo "Dependance \"klickety\" is not installed. Exiting..." exit fi fi #Checking klines... if [ ! -f /var/cache/ulfs-packages/klines ]; then echo "Dependance \"klines\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/klines/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/klines/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/klines ]; then echo "Dependance \"klines\" is not installed. Exiting..." exit fi fi #Checking kmahjongg... if [ ! -f /var/cache/ulfs-packages/kmahjongg ]; then echo "Dependance \"kmahjongg\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kmahjongg/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kmahjongg/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kmahjongg ]; then echo "Dependance \"kmahjongg\" is not installed. Exiting..." exit fi fi #Checking kmines... if [ ! -f /var/cache/ulfs-packages/kmines ]; then echo "Dependance \"kmines\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kmines/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kmines/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kmines ]; then echo "Dependance \"kmines\" is not installed. Exiting..." exit fi fi #Checking knavalbattle... if [ ! -f /var/cache/ulfs-packages/knavalbattle ]; then echo "Dependance \"knavalbattle\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/knavalbattle/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/knavalbattle/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/knavalbattle ]; then echo "Dependance \"knavalbattle\" is not installed. Exiting..." exit fi fi #Checking knetwalk... if [ ! -f /var/cache/ulfs-packages/knetwalk ]; then echo "Dependance \"knetwalk\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/knetwalk/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/knetwalk/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/knetwalk ]; then echo "Dependance \"knetwalk\" is not installed. Exiting..." exit fi fi #Checking knights... if [ ! -f /var/cache/ulfs-packages/knights ]; then echo "Dependance \"knights\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/knights/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/knights/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/knights ]; then echo "Dependance \"knights\" is not installed. Exiting..." exit fi fi #Checking kolf... if [ ! -f /var/cache/ulfs-packages/kolf ]; then echo "Dependance \"kolf\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kolf/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kolf/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kolf ]; then echo "Dependance \"kolf\" is not installed. Exiting..." exit fi fi #Checking kollision... if [ ! -f /var/cache/ulfs-packages/kollision ]; then echo "Dependance \"kollision\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kollision/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kollision/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kollision ]; then echo "Dependance \"kollision\" is not installed. Exiting..." exit fi fi #Checking konquest... if [ ! -f /var/cache/ulfs-packages/konquest ]; then echo "Dependance \"konquest\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/konquest/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/konquest/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/konquest ]; then echo "Dependance \"konquest\" is not installed. Exiting..." exit fi fi #Checking kpat... if [ ! -f /var/cache/ulfs-packages/kpat ]; then echo "Dependance \"kpat\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kpat/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kpat/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kpat ]; then echo "Dependance \"kpat\" is not installed. Exiting..." exit fi fi #Checking kreversi... if [ ! -f /var/cache/ulfs-packages/kreversi ]; then echo "Dependance \"kreversi\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kreversi/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kreversi/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kreversi ]; then echo "Dependance \"kreversi\" is not installed. Exiting..." exit fi fi #Checking kshisen... if [ ! -f /var/cache/ulfs-packages/kshisen ]; then echo "Dependance \"kshisen\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kshisen/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kshisen/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kshisen ]; then echo "Dependance \"kshisen\" is not installed. Exiting..." exit fi fi #Checking ksirk... if [ ! -f /var/cache/ulfs-packages/ksirk ]; then echo "Dependance \"ksirk\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ksirk/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ksirk/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ksirk ]; then echo "Dependance \"ksirk\" is not installed. Exiting..." exit fi fi #Checking ksnakeduel... if [ ! -f /var/cache/ulfs-packages/ksnakeduel ]; then echo "Dependance \"ksnakeduel\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ksnakeduel/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ksnakeduel/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ksnakeduel ]; then echo "Dependance \"ksnakeduel\" is not installed. Exiting..." exit fi fi #Checking kspaceduel... if [ ! -f /var/cache/ulfs-packages/kspaceduel ]; then echo "Dependance \"kspaceduel\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kspaceduel/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kspaceduel/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kspaceduel ]; then echo "Dependance \"kspaceduel\" is not installed. Exiting..." exit fi fi #Checking ksquares... if [ ! -f /var/cache/ulfs-packages/ksquares ]; then echo "Dependance \"ksquares\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ksquares/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ksquares/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ksquares ]; then echo "Dependance \"ksquares\" is not installed. Exiting..." exit fi fi #Checking ksudoku... if [ ! -f /var/cache/ulfs-packages/ksudoku ]; then echo "Dependance \"ksudoku\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ksudoku/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ksudoku/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ksudoku ]; then echo "Dependance \"ksudoku\" is not installed. Exiting..." exit fi fi #Checking ktuberling... if [ ! -f /var/cache/ulfs-packages/ktuberling ]; then echo "Dependance \"ktuberling\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ktuberling/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ktuberling/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ktuberling ]; then echo "Dependance \"ktuberling\" is not installed. Exiting..." exit fi fi #Checking kubrick... if [ ! -f /var/cache/ulfs-packages/kubrick ]; then echo "Dependance \"kubrick\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kubrick/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kubrick/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kubrick ]; then echo "Dependance \"kubrick\" is not installed. Exiting..." exit fi fi #Checking lskat... if [ ! -f /var/cache/ulfs-packages/lskat ]; then echo "Dependance \"lskat\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lskat/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lskat/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lskat ]; then echo "Dependance \"lskat\" is not installed. Exiting..." exit fi fi #Checking palapeli... if [ ! -f /var/cache/ulfs-packages/palapeli ]; then echo "Dependance \"palapeli\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/palapeli/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/palapeli/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/palapeli ]; then echo "Dependance \"palapeli\" is not installed. Exiting..." exit fi fi #Checking picmi... if [ ! -f /var/cache/ulfs-packages/picmi ]; then echo "Dependance \"picmi\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/picmi/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/picmi/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/picmi ]; then echo "Dependance \"picmi\" is not installed. Exiting..." exit fi fi #Checking skladnik... if [ ! -f /var/cache/ulfs-packages/skladnik ]; then echo "Dependance \"skladnik\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/skladnik/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/skladnik/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/skladnik ]; then echo "Dependance \"skladnik\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/KDE6-games/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/KDE6-games/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/KDE6-games/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/KDE6-games/finish.time #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/KDE6-games else sudo touch /var/cache/ulfs-packages/KDE6-games fi #Calculate prepare time a=`cat /var/log/ulfs-packages/KDE6-games/start.time` b=`cat /var/log/ulfs-packages/KDE6-games/configure.time` dp=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/KDE6-games/configure.time` b=`cat /var/log/ulfs-packages/KDE6-games/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/KDE6-games/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: KDE6-games" echo "Release: 0.2.3" echo "Prepare time: $dp sec." echo "Build time: $db sec." #End of script