#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.3 # Package: KDE6-apps-multimedia #=========================== # DB commit: e480449868ca4262eee264eafd6c2d45b7f54583 # APP commit: b0e7f121177a769c20a4c985867d650259b096ce #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: KDE6-apps-multimedia" 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-apps-multimedia/ #Saving start timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-multimedia/start.time #Going to source directory... cd /sources #Checking dependances... #Checking audex... if [ ! -f /var/cache/ulfs-packages/audex ]; then echo "Dependance \"audex\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/audex/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/audex/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/audex ]; then echo "Dependance \"audex\" is not installed. Exiting..." exit fi fi #Checking audiocd-kio... if [ ! -f /var/cache/ulfs-packages/audiocd-kio ]; then echo "Dependance \"audiocd-kio\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/audiocd-kio/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/audiocd-kio/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/audiocd-kio ]; then echo "Dependance \"audiocd-kio\" is not installed. Exiting..." exit fi fi #Checking audiotube... if [ ! -f /var/cache/ulfs-packages/audiotube ]; then echo "Dependance \"audiotube\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/audiotube/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/audiotube/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/audiotube ]; then echo "Dependance \"audiotube\" is not installed. Exiting..." exit fi fi #Checking dragon... if [ ! -f /var/cache/ulfs-packages/dragon ]; then echo "Dependance \"dragon\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/dragon/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/dragon/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/dragon ]; then echo "Dependance \"dragon\" is not installed. Exiting..." exit fi fi #Checking elisa... if [ ! -f /var/cache/ulfs-packages/elisa ]; then echo "Dependance \"elisa\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/elisa/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/elisa/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/elisa ]; then echo "Dependance \"elisa\" is not installed. Exiting..." exit fi fi #Checking ffmpegthumbs... if [ ! -f /var/cache/ulfs-packages/ffmpegthumbs ]; then echo "Dependance \"ffmpegthumbs\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/ffmpegthumbs/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/ffmpegthumbs/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/ffmpegthumbs ]; then echo "Dependance \"ffmpegthumbs\" is not installed. Exiting..." exit fi fi #Checking juk... if [ ! -f /var/cache/ulfs-packages/juk ]; then echo "Dependance \"juk\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/juk/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/juk/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/juk ]; then echo "Dependance \"juk\" is not installed. Exiting..." exit fi fi #Checking kasts... if [ ! -f /var/cache/ulfs-packages/kasts ]; then echo "Dependance \"kasts\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kasts/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kasts/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kasts ]; then echo "Dependance \"kasts\" is not installed. Exiting..." exit fi fi #Checking kwave... if [ ! -f /var/cache/ulfs-packages/kwave ]; then echo "Dependance \"kwave\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kwave/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kwave/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kwave ]; then echo "Dependance \"kwave\" is not installed. Exiting..." exit fi fi #Checking plasmatube... if [ ! -f /var/cache/ulfs-packages/plasmatube ]; then echo "Dependance \"plasmatube\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/plasmatube/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/plasmatube/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/plasmatube ]; then echo "Dependance \"plasmatube\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-multimedia/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-multimedia/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-multimedia/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-multimedia/finish.time #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/KDE6-apps-multimedia else sudo touch /var/cache/ulfs-packages/KDE6-apps-multimedia fi #Calculate prepare time a=`cat /var/log/ulfs-packages/KDE6-apps-multimedia/start.time` b=`cat /var/log/ulfs-packages/KDE6-apps-multimedia/configure.time` dp=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/KDE6-apps-multimedia/configure.time` b=`cat /var/log/ulfs-packages/KDE6-apps-multimedia/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/KDE6-apps-multimedia/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: KDE6-apps-multimedia" echo "Release: 0.2.3" echo "Prepare time: $dp sec." echo "Build time: $db sec." #End of script