#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.3 # Package: KDE6-apps-sdk #=========================== # DB commit: e480449868ca4262eee264eafd6c2d45b7f54583 # APP commit: b0e7f121177a769c20a4c985867d650259b096ce #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: KDE6-apps-sdk" 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-sdk/ #Saving start timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-sdk/start.time #Going to source directory... cd /sources #Checking dependances... #Checking kapptemplate... if [ ! -f /var/cache/ulfs-packages/kapptemplate ]; then echo "Dependance \"kapptemplate\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kapptemplate/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kapptemplate/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kapptemplate ]; then echo "Dependance \"kapptemplate\" is not installed. Exiting..." exit fi fi #Checking kcachegrind... if [ ! -f /var/cache/ulfs-packages/kcachegrind ]; then echo "Dependance \"kcachegrind\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kcachegrind/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kcachegrind/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kcachegrind ]; then echo "Dependance \"kcachegrind\" is not installed. Exiting..." exit fi fi #Checking kde-dev-scripts... if [ ! -f /var/cache/ulfs-packages/kde-dev-scripts ]; then echo "Dependance \"kde-dev-scripts\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kde-dev-scripts/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kde-dev-scripts/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kde-dev-scripts ]; then echo "Dependance \"kde-dev-scripts\" is not installed. Exiting..." exit fi fi #Checking kde-dev-utils... if [ ! -f /var/cache/ulfs-packages/kde-dev-utils ]; then echo "Dependance \"kde-dev-utils\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kde-dev-utils/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kde-dev-utils/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kde-dev-utils ]; then echo "Dependance \"kde-dev-utils\" is not installed. Exiting..." exit fi fi #Checking kdesdk-kio... if [ ! -f /var/cache/ulfs-packages/kdesdk-kio ]; then echo "Dependance \"kdesdk-kio\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdesdk-kio/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdesdk-kio/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdesdk-kio ]; then echo "Dependance \"kdesdk-kio\" is not installed. Exiting..." exit fi fi #Checking kdesdk-thumbnailers... if [ ! -f /var/cache/ulfs-packages/kdesdk-thumbnailers ]; then echo "Dependance \"kdesdk-thumbnailers\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kdesdk-thumbnailers/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kdesdk-thumbnailers/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kdesdk-thumbnailers ]; then echo "Dependance \"kdesdk-thumbnailers\" is not installed. Exiting..." exit fi fi #Checking kirigami-gallery... if [ ! -f /var/cache/ulfs-packages/kirigami-gallery ]; then echo "Dependance \"kirigami-gallery\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kirigami-gallery/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kirigami-gallery/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kirigami-gallery ]; then echo "Dependance \"kirigami-gallery\" is not installed. Exiting..." exit fi fi #Checking kompare... if [ ! -f /var/cache/ulfs-packages/kompare ]; then echo "Dependance \"kompare\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/kompare/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/kompare/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/kompare ]; then echo "Dependance \"kompare\" is not installed. Exiting..." exit fi fi #Checking lokalize... if [ ! -f /var/cache/ulfs-packages/lokalize ]; then echo "Dependance \"lokalize\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lokalize/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lokalize/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lokalize ]; then echo "Dependance \"lokalize\" is not installed. Exiting..." exit fi fi #Checking massif-visualizer... if [ ! -f /var/cache/ulfs-packages/massif-visualizer ]; then echo "Dependance \"massif-visualizer\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/massif-visualizer/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/massif-visualizer/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/massif-visualizer ]; then echo "Dependance \"massif-visualizer\" is not installed. Exiting..." exit fi fi #Checking poxml... if [ ! -f /var/cache/ulfs-packages/poxml ]; then echo "Dependance \"poxml\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/poxml/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/poxml/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/poxml ]; then echo "Dependance \"poxml\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-sdk/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-sdk/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-sdk/install.time #Running install script... # #Saving finish timestamp date +%s > /var/log/ulfs-packages/KDE6-apps-sdk/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-sdk else sudo touch /var/cache/ulfs-packages/KDE6-apps-sdk fi #Calculate prepare time a=`cat /var/log/ulfs-packages/KDE6-apps-sdk/start.time` b=`cat /var/log/ulfs-packages/KDE6-apps-sdk/configure.time` dp=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/KDE6-apps-sdk/configure.time` b=`cat /var/log/ulfs-packages/KDE6-apps-sdk/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/KDE6-apps-sdk/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: KDE6-apps-sdk" echo "Release: 0.2.3" echo "Prepare time: $dp sec." echo "Build time: $db sec." #End of script