#!/bin/bash #=========================== # UMVIRT LINUX FROM SCRATCH #=========================== # Compilation script. # Network mode. #=========================== # Release: 0.2.3 # Package: !LXQT #=========================== # DB commit: f64c98382982c764c3ba140bfcbbc73d93096acd # APP commit: e09dc78145b10de9481608254eb2ac99efd0068b #=========================== echo "ULFS Package installation start" echo "===============================" echo "Package: !LXQT" 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/!LXQT/ #Saving start timestamp date +%s > /var/log/ulfs-packages/!LXQT/start.time #Going to source directory... cd /sources #Checking dependances... #Checking lxqt-build-tools... if [ ! -f /var/cache/ulfs-packages/lxqt-build-tools ]; then echo "Dependance \"lxqt-build-tools\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-build-tools/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-build-tools/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-build-tools ]; then echo "Dependance \"lxqt-build-tools\" is not installed. Exiting..." exit fi fi #Checking libdbusmenu-lxqt... if [ ! -f /var/cache/ulfs-packages/libdbusmenu-lxqt ]; then echo "Dependance \"libdbusmenu-lxqt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/libdbusmenu-lxqt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/libdbusmenu-lxqt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libdbusmenu-lxqt ]; then echo "Dependance \"libdbusmenu-lxqt\" is not installed. Exiting..." exit fi fi #Checking libqtxdg... if [ ! -f /var/cache/ulfs-packages/libqtxdg ]; then echo "Dependance \"libqtxdg\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/libqtxdg/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/libqtxdg/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libqtxdg ]; then echo "Dependance \"libqtxdg\" is not installed. Exiting..." exit fi fi #Checking lxqt-menu-data... if [ ! -f /var/cache/ulfs-packages/lxqt-menu-data ]; then echo "Dependance \"lxqt-menu-data\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-menu-data/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-menu-data/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-menu-data ]; then echo "Dependance \"lxqt-menu-data\" is not installed. Exiting..." exit fi fi #Checking liblxqt... if [ ! -f /var/cache/ulfs-packages/liblxqt ]; then echo "Dependance \"liblxqt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/liblxqt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/liblxqt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/liblxqt ]; then echo "Dependance \"liblxqt\" is not installed. Exiting..." exit fi fi #Checking libsysstat... if [ ! -f /var/cache/ulfs-packages/libsysstat ]; then echo "Dependance \"libsysstat\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/libsysstat/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/libsysstat/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libsysstat ]; then echo "Dependance \"libsysstat\" is not installed. Exiting..." exit fi fi #Checking qtxdg-tools... if [ ! -f /var/cache/ulfs-packages/qtxdg-tools ]; then echo "Dependance \"qtxdg-tools\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/qtxdg-tools/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/qtxdg-tools/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/qtxdg-tools ]; then echo "Dependance \"qtxdg-tools\" is not installed. Exiting..." exit fi fi #Checking libfm-qt... if [ ! -f /var/cache/ulfs-packages/libfm-qt ]; then echo "Dependance \"libfm-qt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/libfm-qt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/libfm-qt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/libfm-qt ]; then echo "Dependance \"libfm-qt\" is not installed. Exiting..." exit fi fi #Checking lxqt-globalkeys... if [ ! -f /var/cache/ulfs-packages/lxqt-globalkeys ]; then echo "Dependance \"lxqt-globalkeys\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-globalkeys/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-globalkeys/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-globalkeys ]; then echo "Dependance \"lxqt-globalkeys\" is not installed. Exiting..." exit fi fi #Checking lxqt-qtplugin... if [ ! -f /var/cache/ulfs-packages/lxqt-qtplugin ]; then echo "Dependance \"lxqt-qtplugin\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-qtplugin/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-qtplugin/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-qtplugin ]; then echo "Dependance \"lxqt-qtplugin\" is not installed. Exiting..." exit fi fi #Checking lxqt-panel... if [ ! -f /var/cache/ulfs-packages/lxqt-panel ]; then echo "Dependance \"lxqt-panel\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-panel/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-panel/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-panel ]; then echo "Dependance \"lxqt-panel\" is not installed. Exiting..." exit fi fi #Checking pcmanfm-qt... if [ ! -f /var/cache/ulfs-packages/pcmanfm-qt ]; then echo "Dependance \"pcmanfm-qt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/pcmanfm-qt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/pcmanfm-qt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/pcmanfm-qt ]; then echo "Dependance \"pcmanfm-qt\" is not installed. Exiting..." exit fi fi #Checking lxqt-powermanagement... if [ ! -f /var/cache/ulfs-packages/lxqt-powermanagement ]; then echo "Dependance \"lxqt-powermanagement\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-powermanagement/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-powermanagement/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-powermanagement ]; then echo "Dependance \"lxqt-powermanagement\" is not installed. Exiting..." exit fi fi #Checking lxqt-runner... if [ ! -f /var/cache/ulfs-packages/lxqt-runner ]; then echo "Dependance \"lxqt-runner\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-runner/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-runner/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-runner ]; then echo "Dependance \"lxqt-runner\" is not installed. Exiting..." exit fi fi #Checking lxqt-themes... if [ ! -f /var/cache/ulfs-packages/lxqt-themes ]; then echo "Dependance \"lxqt-themes\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-themes/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-themes/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-themes ]; then echo "Dependance \"lxqt-themes\" is not installed. Exiting..." exit fi fi #Checking lxqt-admin... if [ ! -f /var/cache/ulfs-packages/lxqt-admin ]; then echo "Dependance \"lxqt-admin\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-admin/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-admin/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-admin ]; then echo "Dependance \"lxqt-admin\" is not installed. Exiting..." exit fi fi #Checking lxqt-about... if [ ! -f /var/cache/ulfs-packages/lxqt-about ]; then echo "Dependance \"lxqt-about\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-about/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-about/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-about ]; then echo "Dependance \"lxqt-about\" is not installed. Exiting..." exit fi fi #Checking lxqt-config... if [ ! -f /var/cache/ulfs-packages/lxqt-config ]; then echo "Dependance \"lxqt-config\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-config/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-config/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-config ]; then echo "Dependance \"lxqt-config\" is not installed. Exiting..." exit fi fi #Checking lxqt-policykit... if [ ! -f /var/cache/ulfs-packages/lxqt-policykit ]; then echo "Dependance \"lxqt-policykit\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-policykit/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-policykit/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-policykit ]; then echo "Dependance \"lxqt-policykit\" is not installed. Exiting..." exit fi fi #Checking lxqt-sudo... if [ ! -f /var/cache/ulfs-packages/lxqt-sudo ]; then echo "Dependance \"lxqt-sudo\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-sudo/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-sudo/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-sudo ]; then echo "Dependance \"lxqt-sudo\" is not installed. Exiting..." exit fi fi #Checking lxqt-openssh-askpass... if [ ! -f /var/cache/ulfs-packages/lxqt-openssh-askpass ]; then echo "Dependance \"lxqt-openssh-askpass\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-openssh-askpass/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-openssh-askpass/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-openssh-askpass ]; then echo "Dependance \"lxqt-openssh-askpass\" is not installed. Exiting..." exit fi fi #Checking lxqt-session... if [ ! -f /var/cache/ulfs-packages/lxqt-session ]; then echo "Dependance \"lxqt-session\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-session/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-session/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-session ]; then echo "Dependance \"lxqt-session\" is not installed. Exiting..." exit fi fi #Checking xdg-desktop-portal-lxqt... if [ ! -f /var/cache/ulfs-packages/xdg-desktop-portal-lxqt ]; then echo "Dependance \"xdg-desktop-portal-lxqt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/xdg-desktop-portal-lxqt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/xdg-desktop-portal-lxqt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/xdg-desktop-portal-lxqt ]; then echo "Dependance \"xdg-desktop-portal-lxqt\" is not installed. Exiting..." exit fi fi #Checking obconf-qt... if [ ! -f /var/cache/ulfs-packages/obconf-qt ]; then echo "Dependance \"obconf-qt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/obconf-qt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/obconf-qt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/obconf-qt ]; then echo "Dependance \"obconf-qt\" is not installed. Exiting..." exit fi fi #Checking lximage-qt... if [ ! -f /var/cache/ulfs-packages/lximage-qt ]; then echo "Dependance \"lximage-qt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lximage-qt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lximage-qt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lximage-qt ]; then echo "Dependance \"lximage-qt\" is not installed. Exiting..." exit fi fi #Checking lxqt-archiver... if [ ! -f /var/cache/ulfs-packages/lxqt-archiver ]; then echo "Dependance \"lxqt-archiver\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-archiver/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-archiver/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-archiver ]; then echo "Dependance \"lxqt-archiver\" is not installed. Exiting..." exit fi fi #Checking lxqt-notificationd... if [ ! -f /var/cache/ulfs-packages/lxqt-notificationd ]; then echo "Dependance \"lxqt-notificationd\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/lxqt-notificationd/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/lxqt-notificationd/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/lxqt-notificationd ]; then echo "Dependance \"lxqt-notificationd\" is not installed. Exiting..." exit fi fi #Checking pavucontrol-qt... if [ ! -f /var/cache/ulfs-packages/pavucontrol-qt ]; then echo "Dependance \"pavucontrol-qt\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/pavucontrol-qt/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/pavucontrol-qt/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/pavucontrol-qt ]; then echo "Dependance \"pavucontrol-qt\" is not installed. Exiting..." exit fi fi #Checking qps... if [ ! -f /var/cache/ulfs-packages/qps ]; then echo "Dependance \"qps\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/qps/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/qps/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/qps ]; then echo "Dependance \"qps\" is not installed. Exiting..." exit fi fi #Checking qtermwidget... if [ ! -f /var/cache/ulfs-packages/qtermwidget ]; then echo "Dependance \"qtermwidget\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/qtermwidget/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/qtermwidget/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/qtermwidget ]; then echo "Dependance \"qtermwidget\" is not installed. Exiting..." exit fi fi #Checking qterminal... if [ ! -f /var/cache/ulfs-packages/qterminal ]; then echo "Dependance \"qterminal\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/qterminal/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/qterminal/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/qterminal ]; then echo "Dependance \"qterminal\" is not installed. Exiting..." exit fi fi #Checking screengrab... if [ ! -f /var/cache/ulfs-packages/screengrab ]; then echo "Dependance \"screengrab\" not found. Trying to install..."; if [[ "$ULFS_DOWNLOAD_APP" == "curl" ]]; then curl https://umvirt.com/linux/packages//0.2.3/screengrab/install -k | bash else wget --no-check-certificate https://umvirt.com/linux/packages//0.2.3/screengrab/install -O - | bash fi if [ ! -f /var/cache/ulfs-packages/screengrab ]; then echo "Dependance \"screengrab\" is not installed. Exiting..." exit fi fi #Saving configuration timestamp date +%s > /var/log/ulfs-packages/!LXQT/configure.time #Saving build timestamp date +%s > /var/log/ulfs-packages/!LXQT/build.time #Saving install timestamp date +%s > /var/log/ulfs-packages/!LXQT/install.time #Running install script... ldconfig && update-mime-database /usr/share/mime && xdg-icon-resource forceupdate && update-desktop-database -q #Saving finish timestamp date +%s > /var/log/ulfs-packages/!LXQT/finish.time #Marking package as installed... mkdir -p /var/cache/ulfs-packages USER=`whoami` if [ "$USER" == "root" ] ; then touch /var/cache/ulfs-packages/!LXQT else sudo touch /var/cache/ulfs-packages/!LXQT fi #Calculate prepare time a=`cat /var/log/ulfs-packages/!LXQT/start.time` b=`cat /var/log/ulfs-packages/!LXQT/configure.time` dp=$(($b-$a)) #Calculate delta time a=`cat /var/log/ulfs-packages/!LXQT/configure.time` b=`cat /var/log/ulfs-packages/!LXQT/finish.time` db=$(($b-$a)) echo $db > /var/log/ulfs-packages/!LXQT/delta.time #Report echo "" echo "ULFS Package installation report" echo "================================" echo "Package: !LXQT" echo "Release: 0.2.3" echo "Prepare time: $dp sec." echo "Build time: $db sec." #End of script