File debian.rules of Package kimi-utils-ubuntu-budgie
#!/usr/bin/make -f
# -*- makefile -*-
# The following line turns on verbose mode so you see what is going on.
export numberOfProcessorsOnMachine=$(shell nproc)
export TOTAL_DISK = $(shell df -h --total | awk 'END{print $$2}')
export FREEMEM = $(shell free --mega)
export TOTAL_MEM = $(shell free --total --mega | xargs | awk '{print $$19"MB"}')
export TOTAL_RAM = $(shell free --total --mega | xargs | awk '{print $$8"MB"}')
export TOTAL_SWAP = $(shell free --total --mega | xargs | awk '{print $$15"MB"}')
export DH_VERBOSE = 1
export PREFIX = /usr/local
export DISTRO = $(shell awk -F= '/^NAME/{print $2}' /etc/os-release | cut -d'=' -f2)
export DISTROVERSION = $(shell awk -F= '/^VERSION_ID/{print $2}' /etc/os-release)
export app_name = utils-ubuntu-budgie
export executable = utils
export executableHumanFormat = Utils
export utils_ubuntu_budgie_major_version = 0
export utils_ubuntu_budgie_minor_version = 0
export utils_ubuntu_budgie_micro_version = 1
export packager = kimi
export packagerHumanFormat = Kimi
export packager_lowercase = $(packager)
export packager_uppercase = $(shell echo $(packager) | tr '[:lower:]' '[:upper:]')
export deb_name = $(packager)-$(app_name)
export executable_tag_lowercase = $(executable)$(utils_ubuntu_budgie_major_version)$(utils_ubuntu_budgie_minor_version)$(utils_ubuntu_budgie_micro_version)
# Convert executable_tag_lowercase to uppercase
UC = $(shell echo $(executable_tag_lowercase) | tr '[:lower:]' '[:upper:]')
export executable_tag_uppercase = $(UC)
export manpage_date = May 2022
#
# Automatic construction of variables
# -----------------------------------
#
# 001
export utils_ubuntu_budgie_tag = $(utils_ubuntu_budgie_major_version)$(utils_ubuntu_budgie_minor_version)$(utils_ubuntu_budgie_micro_version)
# 0.0.1
export utils_ubuntu_budgie_version = $(utils_ubuntu_budgie_major_version).$(utils_ubuntu_budgie_minor_version).$(utils_ubuntu_budgie_micro_version)
# 0.0.1
export utils_ubuntu_budgie_release_version = $(utils_ubuntu_budgie_major_version).$(utils_ubuntu_budgie_minor_version).$(utils_ubuntu_budgie_micro_version)
export buildroot = debian/$(packager)-$(app_name)
# --- No $(buildroot) in directory paths below ---
export utils_ubuntu_budgie_install_dir_parent_dir = /usr/local/$(app_name)
export utils_ubuntu_budgie_install_parent_reldir = usr/local/$(app_name)
export utils_ubuntu_budgie_install_dir = $(utils_ubuntu_budgie_install_dir_parent_dir)/$(utils_ubuntu_budgie_version)
export utils_ubuntu_budgie_install_prefix = $(utils_ubuntu_budgie_install_dir)
export utils_ubuntu_budgie_install_reldir = $(utils_ubuntu_budgie_install_parent_reldir)/$(utils_ubuntu_budgie_version)
export utils_ubuntu_budgie_install_scripts_dir = /usr/local/bin
export utils_ubuntu_budgie_install_scripts_prefix = $(utils_ubuntu_budgie_install_scripts_dir)
export utils_ubuntu_budgie_install_scripts_reldir = usr/local/bin
export utils_ubuntu_budgie_install_share_prefix = /usr/share
export utils_ubuntu_budgie_install_share_reldir = usr/share
export utils_ubuntu_budgie_install_man_prefix = $(utils_ubuntu_budgie_install_prefix)/man/man1
export utils_ubuntu_budgie_install_man_reldir = $(utils_ubuntu_budgie_install_reldir)/man/man1
export system_install_mime_xml_prefix = /usr/share/mime/packages
export system_install_mime_xml_reldir = usr/share/mime/packages
export system_install_mime_lib_prefix = /usr/lib/mime/packages
export system_install_mime_lib_reldir = usr/lib/mime/packages
export system_bindir = /usr/local/bin
export system_bin_dir = /usr/local/bin
export system_bin_reldir = usr/local/bin
export system_mandir = /usr/local/man/man1
export system_man_dir = $(system_mandir)
export system_man_reldir = usr/local/man/man1
export system_sharedir = /usr/share
export system_share_dir = $(system_sharedir)
export system_share_reldir = usr/share
export system_scalable_icondir = /usr/share/icons/hicolor/scalable/apps
export system_scalable_icon_dir = $(system_scalable_icondir)
export system_scalable_icon_reldir = usr/share/icons/hicolor/scalable/apps
export system_scalable_hicolor_icons_prefix = $(utils_ubuntu_budgie_install_share_prefix)/icons/hicolor/scalable/apps
export utils_ubuntu_budgie_scalable_hicolor_icons_prefix = $(utils_ubuntu_budgie_install_scripts_prefix)/share/icons/hicolor/scalable/apps
export utils_ubuntu_budgie_install_man_reldir = usr/local/share/man/man1
export utils_ubuntu_budgie_scalable_hicolor_icons_reldir = share/icons/hicolor/scalable/apps
export scalable_hicolor_icons_reldir = share/icons/hicolor/scalable/apps
export system_app_launchers_prefix = $(utils_ubuntu_budgie_install_share_prefix)/applications
export system_app_launchers_reldir = $(utils_ubuntu_budgie_install_share_reldir)/applications
export utils_ubuntu_budgie_app_launchers_prefix = $(utils_ubuntu_budgie_install_scripts_prefix)/share/applications
export utils_ubuntu_budgie_bindir = $(utils_ubuntu_budgie_install_prefix)/bin
export utils_ubuntu_budgie_bin_reldir = $(utils_ubuntu_budgie_install_reldir)/bin
# --- No $(buildroot) in directory paths above ---
export executable_tag = $(executable)$(utils_ubuntu_budgie_tag)
export auto_start_script_filename = auto-start-$(executable_tag)
export remove_auto_start_script_filename = $(auto_start_script_filename)-remove
export manpageFileName = $(executable_tag).1
export manpageFullFilePath = $(buildroot)$(system_mandir)/$(manpageFileName)
#
# Template:
# export scriptFileNameOne = change-$(executable)-icon
# export scriptFullFilePathOne = $(buildroot)$(utils_ubuntu_budgie_install_prefix)/bin/$(scriptFileNameOne)
# export scriptRelFilePathOne = $(utils_ubuntu_budgie_install_reldir)/bin/$(scriptFileNameOne)
# export scriptRelFilePathOne = $(utils_ubuntu_budgie_bin_reldir)/$(scriptFileNameOne)
# export scriptLinkNameOne = change-$(executable)$(utils_ubuntu_budgie_tag)-icon
# export scriptLinkNameOne = change-$(executable_tag)-icon
# export scriptLinkFullPathOne = $(buildroot)/usr/local/bin/$(scriptLinkNameOne)
# export scriptLinkPathOne = $(buildroot)/usr/local/bin/$(scriptLinkNameOne)
# export scriptRelLinkPathOne = $(system_bin_reldir)/$(scriptFileNameOne)
#
# Script filename one:
# uninstall-utils
#
export scriptFileNameOne = uninstall-$(executable)
#
# Full file path to script filename one:
# $(buildroot)/usr/local/$(app_name)/4.3.0-beta.64/bin/uninstall-utils
#
export scriptFullFilePathOne = $(buildroot)$(utils_ubuntu_budgie_install_prefix)/bin/$(scriptFileNameOne)
#
# Script relative file path to filename one:
# usr/local/$(app_name)/4.3.0-beta.64/bin/uninstall-utils
#
# export scriptRelFilePathOne = $(utils_ubuntu_budgie_install_reldir)/bin/$(scriptFileNameOne)
export scriptRelFilePathOne = $(utils_ubuntu_budgie_bin_reldir)/$(scriptFileNameOne)
#
# Script linkname one:
# uninstall-utils430-beta64
#
export linkNameOne = uninstall-$(executable_tag)
#
# Full path to link linkname one:
# $(buildroot)/usr/local/bin/uninstall-utils430-beta64
#
export linkFullPathOne = $(buildroot)$(system_bindir)/$(linkNameOne)
#
# Link relative file path one:
# usr/local/bin/uninstall-utils430-beta64
#
export linkRelPathOne = $(system_bin_reldir)/$(linkNameOne)
#
# Script filename two:
# change-utils-icon
#
export scriptFileNameTwo = change-$(executable)-icon
#
# Full file path to script filename two:
# $(buildroot)/usr/local/$(app_name)/4.3.0-beta.64/bin/change-utils-icon
#
export scriptFullFilePathTwo = $(buildroot)$(utils_ubuntu_budgie_install_prefix)/bin/$(scriptFileNameTwo)
#
# Script relative file path to filename two:
# usr/local/$(app_name)/4.3.0-beta.64/bin/uninstall-utils
#
export scriptRelFilePathTwo = $(utils_ubuntu_budgie_install_reldir)/bin/$(scriptFileNameTwo)
# export scriptRelFilePathTwo = $(utils_ubuntu_budgie_bin_reldir)/$(scriptFileNameTwo)
#
# Script linkname two:
# change-utils430-beta64-icon
#
export linkNameTwo = change-$(executable_tag)-icon
#
# Full path to link linkname two:
# $(buildroot)/usr/local/bin/change-utils430-beta64-icon
#
export linkFullPathTwo = $(buildroot)$(system_bindir)/$(linkNameTwo)
#
# Link relative file path two:
# usr/local/bin/change-utils430-beta64-icon
#
export linkRelPathTwo = $(system_bin_reldir)/$(linkNameTwo)
#
#
# Script filename three:
# auto-start-utils
#
export scriptFileNameThree = auto-start-$(executable)
#
# Full file path to script filename three:
# $(buildroot)/usr/local/$(app_name)/4.3.0-beta.64/bin/auto-start-utils
#
export scriptFullFilePathThree = $(buildroot)$(utils_ubuntu_budgie_install_prefix)/bin/$(scriptFileNameThree)
#
# Script relative file path to filename three:
# usr/local/$(app_name)/4.3.0-beta.64/bin/uninstall-utils
#
export scriptRelFilePathThree = $(utils_ubuntu_budgie_install_reldir)/bin/$(scriptFileNameThree)
export scriptRelFilePathThree = $(utils_ubuntu_budgie_bin_reldir)/$(scriptFileNameThree)
#
# Script linkname three:
# auto-start-utils430-beta64
#
export linkNameThree = auto-start-$(executable_tag)
#
# Full path to link linkname three:
# $(buildroot)/usr/local/bin/auto-start-utils430-beta64
#
export linkFullPathThree = $(buildroot)$(system_bindir)/$(linkNameThree)
#
# Link relative file path three:
# usr/local/bin/auto-start-utils430-beta64
#
export linkRelPathThree = $(system_bin_reldir)/$(linkNameThree)
#
#
# Script filename four:
# auto-start-utils-remove
#
export scriptFileNameFour = auto-start-$(executable)-remove
#
# Full file path to script filename four:
# $(buildroot)/usr/local/$(app_name)/4.3.0-beta.64/bin/auto-start-utils-remove
#
export scriptFullFilePathFour = $(buildroot)$(utils_ubuntu_budgie_install_prefix)/bin/$(scriptFileNameFour)
#
# Script relative file path to filename four:
# usr/local/$(app_name)/4.3.0-beta.64/bin/uninstall-utils-remove
#
export scriptRelFilePathFour = $(utils_ubuntu_budgie_install_reldir)/bin/$(scriptFileNameFour)
export scriptRelFilePathFour = $(utils_ubuntu_budgie_bin_reldir)/$(scriptFileNameFour)
#
# Script linkname four:
# auto-start-utils430-beta64-remove
#
export linkNameFour = auto-start-$(executable_tag)-remove
#
# Full path to link linkname four:
# $(buildroot)/usr/local/bin/auto-start-utils430-beta64-remove
#
export linkFullPathFour = $(buildroot)$(system_bindir)/$(linkNameFour)
#
# Link relative file path four:
# usr/local/bin/auto-start-utils430-beta64-remove
#
export linkRelPathFour = $(system_bin_reldir)/$(linkNameFour)
#
export utils_ubuntu_budgie_icon_name = $(executable)$(utils_ubuntu_budgie_condensed_tag)
export utils_ubuntu_budgie_icon_filename = $(executable)$(utils_ubuntu_budgie_condensed_tag).svg
export iconFileNameOne = $(executable)$(utils_ubuntu_budgie_condensed_tag).svg
export iconFullFilePathOne = $(buildroot)$(system_scalable_icondir)/$(iconFileNameOne)
export utils_alpha_icon_name = $(executable)_alpha
export utils_alpha_icon_filename = $(executable)_alpha.svg
export utils_beta_icon_name = $(executable)_beta
export utils_beta_icon_filename = $(executable)_beta.svg
export utils_extra_icon_name_one = $(executable)_orange_01
export utils_extra_icon_filename_one = $(executable)_orange_01.svg
export utils_extra_icon_name_two = $(executable)_gray_01
export utils_extra_icon_filename_two = $(executable)_gray_01.svg
export utils_extra_icon_name_three = $(executable)_gray_02
export utils_extra_icon_filename_three = $(executable)_gray_02.svg
export utils_extra_icon_name_four = $(executable)_green_01
export utils_extra_icon_filename_four = $(executable)_green_01.svg
export utils_extra_icon_name_five = $(executable)_gray_03
export utils_extra_icon_filename_five = $(executable)_gray_03.svg
export utils_extra_icon_name_six = $(executable)_blue_01
export utils_extra_icon_filename_six = $(executable)_blue_01.svg
export TITLE = $(executableHumanFormat) $(utils_ubuntu_budgie_version)
export menuFileNameOne = $(executable_tag).desktop
export menuFullFilePathOne = $(buildroot)$(system_app_launchers_prefix)/$(menuFileNameOne)
export menuFileNameTwo = $(executable_tag)-minimized.desktop
export menuFullFilePathTwo = $(buildroot)$(utils_ubuntu_budgie_install_prefix)/share/applications/$(menuFileNameTwo)
export mimeXMLfileName = $(packager_lowercase)-$(app_name)-$(utils_ubuntu_budgie_alphabeta).xml
export mimeXMLfullFilePath = $(buildroot)/usr/share/mime/packages/$(mimeXMLfileName)
export mimeXMLfullInstallToDirPath = $(buildroot)/usr/share/mime/packages
export mimeLibFileName = $(packager_lowercase)-$(app_name)-$(utils_ubuntu_budgie_alphabeta)
export mimeLibFullInstallToDirPath = $(buildroot)/usr/lib/mime/packages
export mimeLibFullFilePath = $(buildroot)/usr/lib/mime/packages/$(mimeLibFileName)
export UTILS_DESTDIR = $(utils_ubuntu_budgie_install_prefix)
configure:
echo "Fix for error aclocal-1.16 missing"
echo "touch * on the c and cpp directory"
echo "Touching contents of $$(pwd)"
find $$(pwd) -type f -exec touch {} +
echo "End fix for error aclocal-1.16 missing"
echo "--- Listing contents of $$(pwd) configure: ---"
echo "find $$(pwd)"
echo "--- End listing contents of $$(pwd) configure:---"
echo "If source file lacks configure.h.in and Makefile"
echo "Running command: dh_autoreconf"
dh_autoreconf
echo "Running command: autoreconf --install"
autoreconf --install
build:
echo "--- Machine data we are building on ---"
echo "Total disk: $$TOTAL_DISK"
echo "Output of free -h:"
echo "$$FREEMEM"
echo "Total memory: $$TOTAL_MEM"
echo "Total RAM: $$TOTAL_RAM"
echo "Total SWAP: $$TOTAL_SWAP"
echo "numberOfProcessorsOnMachine=$$numberOfProcessorsOnMachine"
echo "--- End machine data we are building on ---"
echo DISTRO=$$DISTRO
if [ "$$DISTRO" = "Ubuntu" ] ; then echo "Distro is Ubuntu" ; fi
if [ "$$DISTRO" = "Debian" ] ; then echo "Distro is Debian" ; fi
if [ "$$DISTRO" = "Fedora" ] ; then echo "Distro is Fedora" ; fi
echo "--- List variables for: $(executable) ---"
echo "echo app_name=$(app_name)"
echo "echo auto_start_script_filename=$(auto_start_script_filename)"
echo "echo buildroot=$(buildroot)"
echo "echo DH_VERBOSE=$(DH_VERBOSE)"
echo "echo DISTRO_VERSION=$(DISTRO_VERSION)"
echo "echo DISTRO=$(DISTRO)"
echo "echo DISTROVERSION=$(DISTROVERSION)"
echo "echo executable_tag=$(executable_tag)"
echo "echo executable=$(executable)"
echo "echo executableHumanFormat=$(executableHumanFormat)"
echo "echo utils_alpha_icon_filename=$(utils_alpha_icon_filename)"
echo "echo utils_alpha_icon_name=$(utils_alpha_icon_name)"
echo "echo utils_beta_icon_filename=$(utils_beta_icon_filename)"
echo "echo utils_beta_icon_name=$(utils_beta_icon_name)"
echo "echo utils_ubuntu_budgie_alphabeta_number=$(utils_ubuntu_budgie_alphabeta_number)"
echo "echo utils_ubuntu_budgie_alphabeta_version=$(utils_ubuntu_budgie_alphabeta_version)"
echo "echo utils_ubuntu_budgie_alphabeta=$(utils_ubuntu_budgie_alphabeta)"
echo "echo utils_ubuntu_budgie_app_launchers_prefix=$(utils_ubuntu_budgie_app_launchers_prefix)"
echo "echo utils_ubuntu_budgie_bindir=$(utils_ubuntu_budgie_bindir)"
echo "echo utils_ubuntu_budgie_condensed_tag=$(utils_ubuntu_budgie_condensed_tag)"
echo "echo utils_ubuntu_budgie_icon_filename=$(utils_ubuntu_budgie_icon_filename)"
echo "echo utils_ubuntu_budgie_icon_name=$(utils_ubuntu_budgie_icon_name)"
echo "echo utils_ubuntu_budgie_install_dir_parent_dir=$(utils_ubuntu_budgie_install_dir_parent_dir)"
echo "echo utils_ubuntu_budgie_install_dir=$(utils_ubuntu_budgie_install_dir)"
echo "echo utils_ubuntu_budgie_install_man_prefix=$(utils_ubuntu_budgie_install_man_prefix)"
echo "echo utils_ubuntu_budgie_install_man_reldir=$(utils_ubuntu_budgie_install_man_reldir)"
echo "echo utils_ubuntu_budgie_install_prefix=$(utils_ubuntu_budgie_install_prefix)"
echo "echo utils_ubuntu_budgie_install_parent_reldir=$(utils_ubuntu_budgie_install_parent_reldir)"
echo "echo utils_ubuntu_budgie_install_reldir=$(utils_ubuntu_budgie_install_reldir)"
echo "echo utils_ubuntu_budgie_install_scripts_dir=$(utils_ubuntu_budgie_install_scripts_dir)"
echo "echo utils_ubuntu_budgie_install_scripts_prefix=$(utils_ubuntu_budgie_install_scripts_prefix)"
echo "echo utils_ubuntu_budgie_install_scripts_reldir=$(utils_ubuntu_budgie_install_scripts_reldir)"
echo "echo utils_ubuntu_budgie_install_share_prefix=$(utils_ubuntu_budgie_install_share_prefix)"
echo "echo utils_ubuntu_budgie_install_share_reldir=$(utils_ubuntu_budgie_install_share_reldir)"
echo "echo utils_ubuntu_budgie_major_version=$(utils_ubuntu_budgie_major_version)"
echo "echo utils_ubuntu_budgie_micro_version=$(utils_ubuntu_budgie_micro_version)"
echo "echo utils_ubuntu_budgie_minor_version=$(utils_ubuntu_budgie_minor_version)"
echo "echo utils_ubuntu_budgie_bin_reldir=$(utils_ubuntu_budgie_bin_reldir)"
echo "echo utils_ubuntu_budgie_release_version=$(utils_ubuntu_budgie_release_version)"
echo "echo utils_ubuntu_budgie_scalable_hicolor_icons_prefix=$(utils_ubuntu_budgie_scalable_hicolor_icons_prefix)"
echo "echo utils_ubuntu_budgie_scalable_hicolor_icons_reldir=$(utils_ubuntu_budgie_scalable_hicolor_icons_reldir)"
echo "echo utils_ubuntu_budgie_tag=$(utils_ubuntu_budgie_tag)"
echo "echo utils_ubuntu_budgie_version=$(utils_ubuntu_budgie_version)"
echo "echo UTILS_DESTDIR=$(UTILS_DESTDIR)"
echo "echo UTILS_DIR=$(UTILS_DIR)"
echo "echo utils_extra_icon_filename_one=$(utils_extra_icon_filename_one)"
echo "echo utils_extra_icon_filename_two=$(utils_extra_icon_filename_two)"
echo "echo utils_extra_icon_name_one=$(utils_extra_icon_name_one)"
echo "echo utils_extra_icon_name_two=$(utils_extra_icon_name_two)"
echo "echo utils_sdk_release_version=$(utils_sdk_release_version)"
echo "echo utils_sdk_version=$(utils_sdk_version)"
echo "echo utils_ubuntu_budgie_version=$(utils_ubuntu_budgie_version)"
echo "echo manpage=$(manpage)"
echo "echo menuFileNameOne=$(menuFileNameOne)"
echo "echo menuFileNameTwo=$(menuFileNameTwo)"
echo "echo mimeXMLfileName=$(mimeXMLfileName)"
echo "echo mimeXMLfullFilePath=$(mimeXMLfullFilePath)"
echo "echo mimeXMLfullInstallToDirPath=$(mimeXMLfullInstallToDirPath)"
echo "echo mimeLibFileName=$(mimeLibFileName)"
echo "echo mimeLibFullInstallToDirPath=$(mimeLibFullInstallToDirPath)"
echo "echo mimeLibFullFilePath=$(mimeLibFullFilePath)"
echo "echo menuFullFilePathOne=$(menuFullFilePathOne)"
echo "echo menuFullFilePathTwo=$(menuFullFilePathTwo)"
echo "echo packager=$(packager)"
echo "echo PREFIX=$(PREFIX)"
echo "echo remove_auto_start_script_filename=$(remove_auto_start_script_filename)"
echo "echo scalable_hicolor_icons_reldir=$(scalable_hicolor_icons_reldir)"
echo "echo scriptFileNameOne=$(scriptFileNameOne)"
echo "echo scriptFileNameTwo=$(scriptFileNameTwo)"
echo "echo scriptFileNameThree=$(scriptFileNameThree)"
echo "echo scriptFileNameFour=$(scriptFileNameFour)"
echo "echo scriptFullFilePathOne=$(scriptFullFilePathOne)"
echo "echo scriptFullFilePathTwo=$(scriptFullFilePathTwo)"
echo "echo scriptFullFilePathThree=$(scriptFullFilePathThree)"
echo "echo scriptFullFilePathFour=$(scriptFullFilePathFour)"
echo "echo scriptRelFilePathOne=$(scriptRelFilePathOne)"
echo "echo scriptRelFilePathTwo=$(scriptRelFilePathTwo)"
echo "echo scriptRelFilePathThree=$(scriptRelFilePathThree)"
echo "echo scriptRelFilePathFour=$(scriptRelFilePathFour)"
echo "echo linkFileNameOne=$(linkFileNameOne)"
echo "echo linkFileNameTwo=$(linkFileNameTwo)"
echo "echo linkFileNameThree=$(linkFileNameThree)"
echo "echo linkFileNameFour=$(linkFileNameFour)"
echo "echo linkFullPathOne=$(linkFullPathOne)"
echo "echo linkFullPathTwo=$(linkFullPathTwo)"
echo "echo linkFullPathThree=$(linkFullPathThree)"
echo "echo linkFullPathFour=$(linkFullPathFour)"
echo "echo linkRelPathOne=$(linkRelPathOne)"
echo "echo linkRelPathTwo=$(linkRelPathTwo)"
echo "echo linkRelPathThree=$(linkRelPathThree)"
echo "echo linkRelPathFour=$(linkRelPathFour)"
echo "echo system_app_launchers_prefix=$(system_app_launchers_prefix)"
echo "echo system_bindir=$(system_bindir)"
echo "echo system_mandir=$(system_mandir)"
echo "echo system_man_reldir=$(system_man_reldir)"
echo "echo system_scalable_hicolor_icons_prefix=$(system_scalable_hicolor_icons_prefix)"
echo "echo TITLE=$(TITLE)"
echo "--- End list variables for: $(executable) ---"
echo "--- Creating directories needed for installation ---"
echo "Creating directory build ..."
mkdir -pv $$HOME/build
echo "--- Make some fixes to correct for bugs ---"
echo "--- End make some fixes to correct for bugs ---"
mkdir -p -v $(buildroot)
mkdir -p -v $(buildroot)/$(utils_ubuntu_budgie_install_parent_reldir)
mkdir -p -v $(buildroot)/$(utils_ubuntu_budgie_install_reldir)
mkdir -p -v $(buildroot)/$(system_man_reldir)
mkdir -p -v $(buildroot)/$(system_share_reldir)
mkdir -p -v $(buildroot)/$(buildroot)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_dir_parent_dir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_dir_parent_dir)/$(utils_ubuntu_budgie_version)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_dir)
mkdir -p -v $(buildroot)/$(utils_ubuntu_budgie_install_parent_reldir)
mkdir -p -v $(buildroot)/$(utils_ubuntu_budgie_install_parent_reldir)/$(utils_ubuntu_budgie_version)
mkdir -p -v $(buildroot)/$(utils_ubuntu_budgie_install_reldir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_scripts_dir)
mkdir -p -v $(buildroot)$(UTILS_DESTDIR)
mkdir -p -v $(buildroot)/$(system_man_reldir)
mkdir -p -v $(buildroot)/$(system_share_reldir)
mkdir -p -v $(buildroot)/debian/$(packager)-$(app_name)-$(utils_ubuntu_budgie_alphabeta)
mkdir -p -v $(buildroot)/usr/local/$(app_name)
mkdir -p -v $(buildroot)/usr/local/bin
mkdir -p -v $(buildroot)/usr/local/man/man1
mkdir -p -v $(buildroot)/usr/share
mkdir -p -v $(buildroot)/usr/share/mime/packages
mkdir -p -v $(buildroot)/usr/lib/mime/packages
mkdir -p -v $(buildroot)$(system_install_mime_xml_prefix)
mkdir -p -v $(buildroot)/$(system_install_mime_xml_reldir)
mkdir -p -v $(buildroot)$(system_install_mime_lib_prefix)
mkdir -p -v $(buildroot)/$(system_install_mime_lib_reldir)
mkdir -p -v $(mimeXMLfullInstallToDirPath)
mkdir -p -v $(mimeLibFullInstallToDirPath)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)/share/applications
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_app_launchers_prefix)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_bindir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_dir_parent_dir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_dir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_man_prefix)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)/bin
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)/man/man1
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)/share/applications
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_scripts_dir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_scripts_prefix)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_scripts_prefix)/share/applications
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_scripts_prefix)/share/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_share_prefix)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_share_prefix)/applications
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_share_prefix)/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_scalable_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(UTILS_DESTDIR)
mkdir -p -v $(buildroot)$(system_app_launchers_prefix)
mkdir -p -v $(buildroot)$(system_bindir)
mkdir -p -v $(buildroot)$(system_mandir)
mkdir -p -v $(buildroot)$(system_scalable_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(system_sharedir)
echo "--- End creating directories needed for installation ---"
echo "--- Creating directories needed for installation ---"
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)
mkdir -p -v $(buildroot)$(system_bindir)
mkdir -p -v $(buildroot)$(system_app_launchers_prefix)
mkdir -p -v $(buildroot)$(system_scalable_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)/$(scalable_hicolor_icons_reldir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_scripts_prefix)/share/applications
mkdir -p -v $(buildroot)$system_bindir
mkdir -p -v $(buildroot)$(system_mandir)
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)/man/man1
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_man_prefix)
mkdir -p -v $(buildroot)$system_sharedir
mkdir -p -v $(buildroot)$system_share_reldir
mkdir -p -v $(buildroot)$(utils_ubuntu_budgie_install_prefix)/share/applications
echo "--- End creating directories ---"
echo "Fix for error aclocal-1.16 missing"
echo "touch * on the c and cpp directory"
echo "Touching contents of $$(pwd)"
find $$(pwd) -type f -exec touch {} +
find $$(pwd) -type d -exec chmod 777 {} +
echo "End fix for error aclocal-1.16 missing"
echo "Running command: dh_autoreconf"
dh_autoreconf
echo "Build should have completed here."
%:
dh $@ --buildsystem=cmake
override_dh_auto_install:
echo "--- Entering section override_dh_autoinstall: ---"
echo "--- Creating directories needed for installation ---"
mkdir -p -v $(buildroot)/$(utils_ubuntu_budgie_install_scripts_dir)
echo "--- End creating directories needed for installation ---"
echo "--- Listing contents of debian : ---"
find debian
echo "--- End listing contents of debian ---"
echo "Copy all scripts ..."
install -m 0755 /usr/src/packages/SOURCES/create-budgie-restart-menu-shortcut $(buildroot)$(utils_ubuntu_budgie_install_scripts_prefix)
install -m 0755 /usr/src/packages/SOURCES/create-budgie-reset-panel-menu-shortcut $(buildroot)$(utils_ubuntu_budgie_install_scripts_prefix)
mkdir -p -v $(buildroot)/usr/share/plank/themes
tar -xf /usr/src/packages/SOURCES/theme.tar.xz -C $(buildroot)/usr/share/plank/themes
echo "--- Listing contents of debian : ---"
echo "find debian"
echo "--- End listing contents of debian ---"
echo "=================================="
echo "--- Listing contents of debian ---"
find $(buildroot) 2>/dev/null
echo "--- End listing contents of debian ---"
echo "=================================="
echo "--- Listing symlinks of debian ---"
find -L $(buildroot) -type l 2>/dev/null
echo "--- End listing symlinks of debian ---"
echo "=================================="
echo "--- Listing files of debian ---"
find $(buildroot) -type f 2>/dev/null
echo "--- End listing files of debian ---"
echo "=================================="
echo "--- Listing directories of debian ---"
find $(buildroot) -type d 2>/dev/null
echo "--- End listing directories of debian ---"
echo "--- End install: ---"
echo "--- Exiting section override_dh_autoinstall: ---"
echo "--- $(deb_name) should now be ready for packaging ---"
override_dh_usrlocal:
clean:
dh_autoreconf_clean
dh_clean