File debian.rules of Package kimi-linphone-desktop-5.1.2-opensuse-fedora-archlinux-debian-ubuntu-raspbian
#!/usr/bin/make -f
# -*- makefile -*-
#
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
#
# Get some information about the machine we are building on:
export numberOfProcessorsOnMachine=$(shell nproc)
export wantedJobs=$(shell echo "1.25*$(numberOfProcessorsOnMachine)" | bc -l)
export jobsIget=$(shell echo $(wantedJobs) | awk '{print int($$1+0.5)}')
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"}')
#
# Linphone is quite big and can take 4500 seconds to compile.
# For trouble shooting, consider breaking it up in at least two parts
# to save compilation time.
# Write shell variables like this to be able to search for them :
# echo "echo \"\MYVARIABLE=\$$MYVARIABLE\"" > \$$HOME/file.txt
# To test the code and save time:
# Break up the software in two parts:
# - Linphone SDK 5.2.98 (make sure this one compiles well)
# then deal with:
# - Linphone-Desktop App 5.1.2
#
# If needed, create a launcher for the linphone executable so it knows where the Linphone SDK libraries are located:
# Launcher file full path: /usr/local/bin/linphone440-alpha16
# Contents of the launcher:
# ----------------------------
# #!/usr/bin/env bash
# linphone_sdk_install_prefix=/usr/local/linphone-sdk/5.0.49
# linphone_executable=/usr/local/linphone-desktop/4.4.0-alpha.16/bin/linphone
# export LD_LIBRARY_PATH=\$$LD_LIBRARY_PATH:${linphone_sdk_install_prefix}/lib:${linphone_sdk_install_prefix}/lib64
# ${linphone_executable} 'call sip-address=%u'
# ${linphone_executable} 'CALL sip-address=%u'
# ----------------------------
#
# Make launcher script executable:
# chmod +x /usr/local/bin/linphone440-alpha16
#
# The following line turns on verbose mode so you see what is going on.
export TRUE = $(shell /usr/bin/true)
export FALSE = $(shell /usr/bin/false)
export YES = yes
export NO = no
export ALPHA = alpha
export BETA = beta
# If not a RELEASE, meaning it is an alpha or beta release, comment out the next line:
export ISRELEASE = yes
ifdef ISRELEASE
export RELEASE = yes
else
export ALPHABETARELEASE = yes
endif
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 = linphone-desktop
export executable = linphone
export executableHumanFormat = Linphone
export linphone_desktop_major_version = 5
export linphone_desktop_minor_version = 1
export linphone_desktop_micro_version = 2
export linphone_desktop_alphabeta = beta
export linphone_desktop_alphabeta_number = 0
export THISMONTH = $(shell LC_TIME='en_US.UTF-8' date +%B)
export THISYEAR = $(shell date +%Y)
export manpage_date "%{THISMONTH} %{THISYEAR}"
#export manpage_date = September 2022
export linphone_sdk_version = 5.2.98
export linphone_sdk_release_version = $(linphone_sdk_version)
export packager = kimi
export packagerHumanFormat = Kimi
export packager_lowercase = $(packager)
export packager_uppercase = $(shell echo $(packager) | tr '[:lower:]' '[:upper:]')
ifdef RELEASE
# Release
export deb_name = $(packager)-$(app_name)
else
# Alpha or beta versions
export deb_name = $(packager)-$(app_name)-$(linphone_desktop_alphabeta)
endif
ifdef RELEASE
# Release
# linphone440
export executable_tag_lowercase = $(executable)$(linphone_desktop_major_version)$(linphone_desktop_minor_version)$(linphone_desktop_micro_version)
else
# Alpha or beta versions
# linphone440-alpha16
export executable_tag_lowercase = $(executable)$(linphone_desktop_major_version)$(linphone_desktop_minor_version)$(linphone_desktop_micro_version)-$(linphone_desktop_alphabeta)$(linphone_desktop_alphabeta_number)
endif
# export executable_tag = $(executable)$(linphone_desktop_tag)
export executable_tag = $(executable_tag_lowercase)
# Convert executable_tag_lowercase to uppercase
UC = $(shell echo $(executable_tag_lowercase) | tr '[:lower:]' '[:upper:]')
export executable_tag_uppercase = $(UC)
#
# Automatic construction of variables
# -----------------------------------
#
ifdef RELEASE
# Release
else
# Alpha or beta versions
endif
ifdef RELEASE
# Release
# 440
export linphone_desktop_tag = $(linphone_desktop_major_version)$(linphone_desktop_minor_version)$(linphone_desktop_micro_version)
else
# Alpha or beta versions
# 440-alpha16
export linphone_desktop_tag = $(linphone_desktop_major_version)$(linphone_desktop_minor_version)$(linphone_desktop_micro_version)-$(linphone_desktop_alphabeta)$(linphone_desktop_alphabeta_number)
endif
ifdef RELEASE
# Release
# 440
export linphone_desktop_condensed_tag = $(linphone_desktop_major_version)$(linphone_desktop_minor_version)$(linphone_desktop_micro_version)
else
# Alpha or beta versions
# 440alpha16
export linphone_desktop_condensed_tag = $(linphone_desktop_major_version)$(linphone_desktop_minor_version)$(linphone_desktop_micro_version)$(linphone_desktop_alphabeta)$(linphone_desktop_alphabeta_number)
endif
ifdef RELEASE
# Release
# 4.4.0
export linphone_desktop_version = $(linphone_desktop_major_version).$(linphone_desktop_minor_version).$(linphone_desktop_micro_version)
else
# Alpha or beta versions
# 4.4.0.alpha.16
export linphone_desktop_version = $(linphone_desktop_major_version).$(linphone_desktop_minor_version).$(linphone_desktop_micro_version).$(linphone_desktop_alphabeta).$(linphone_desktop_alphabeta_number)
endif
ifdef RELEASE
# Release
export linphone_desktop_alphabeta_version = ""
else
# Alpha or beta versions
# alpha.16
export linphone_desktop_alphabeta_version = $(linphone_desktop_alphabeta).$(linphone_desktop_alphabeta_number)
endif
# 4.4.0
export linphone_desktop_release_version = $(linphone_desktop_major_version).$(linphone_desktop_minor_version).$(linphone_desktop_micro_version)
ifdef RELEASE
# Release
# Release version is the same as linphone_desktop_release_version
export linphone_desktop_version = $(linphone_desktop_release_version)
else
# Alpha or beta versions
# 4.4.0.alpha.16
export linphone_desktop_version = $(linphone_desktop_release_version).$(linphone_desktop_alphabeta_version)
endif
ifdef RELEASE
# Release
# 4.4.0
export linphone_version = $(linphone_desktop_major_version).$(linphone_desktop_minor_version).$(linphone_desktop_micro_version)
else
# Alpha or beta versions
# 4.4.0-alpha.16
export linphone_version = $(linphone_desktop_major_version).$(linphone_desktop_minor_version).$(linphone_desktop_micro_version)-$(linphone_desktop_alphabeta).$(linphone_desktop_alphabeta_number)
endif
ifdef RELEASE
# Release
export buildroot = debian/$(packager)-$(app_name)
else
# Alpha or beta versions
export buildroot = debian/$(packager)-$(app_name)-$(linphone_desktop_alphabeta)
endif
# --- No $(buildroot) in directory paths below ---
export linphone_desktop_install_dir_parent_dir = /usr/local/$(app_name)
export linphone_desktop_install_parent_reldir = usr/local/$(app_name)
export linphone_desktop_install_dir = $(linphone_desktop_install_dir_parent_dir)/$(linphone_version)
export linphone_desktop_install_prefix = $(linphone_desktop_install_dir)
export linphone_desktop_install_reldir = $(linphone_desktop_install_parent_reldir)/$(linphone_version)
export linphone_desktop_install_scripts_dir = /usr/local/bin
export linphone_desktop_install_scripts_prefix = $(linphone_desktop_install_scripts_dir)
export linphone_desktop_install_scripts_reldir = usr/local/bin
export linphone_desktop_install_share_prefix = /usr/share
export linphone_desktop_install_share_reldir = usr/share
export linphone_desktop_install_man_prefix = $(linphone_desktop_install_prefix)/man/man1
export linphone_desktop_install_man_reldir = $(linphone_desktop_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 linphone_desktop_install_man_reldir = usr/local/share/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 = $(system_scalable_icondir)
export system_web_icondir = /usr/share/icons/hicolor/scalable/web
export system_web_icon_dir = $(system_web_icondir)
export system_web_icon_reldir = usr/share/icons/hicolor/scalable/web
export system_web_hicolor_icons_prefix = $(system_web_icondir)
export linphone_desktop_scalable_hicolor_icons_prefix = $(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/apps
export linphone_desktop_scalable_hicolor_icons_reldir = share/icons/hicolor/scalable/apps
export linphone_desktop_web_hicolor_icons_prefix = $(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/web
export linphone_desktop_web_hicolor_icons_reldir = share/icons/hicolor/scalable/web
export scalable_hicolor_icons_reldir = share/icons/hicolor/scalable/apps
export web_hicolor_icons_reldir = share/icons/hicolor/scalable/web
export system_app_launchers_prefix = $(linphone_desktop_install_share_prefix)/applications
export system_app_launchers_reldir = $(linphone_desktop_install_share_reldir)/applications
export linphone_desktop_app_launchers_prefix = $(linphone_desktop_install_prefix)/share/applications
export linphone_desktop_bindir = $(linphone_desktop_install_prefix)/bin
export linphone_desktop_bin_reldir = $(linphone_desktop_install_reldir)/bin
# --- No $(buildroot) in directory paths above ---
export executable_condensed_tag = $(executable)$(linphone_desktop_condensed_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)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameOne)
# export scriptRelFilePathOne = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameOne)
# export scriptRelFilePathOne = $(linphone_desktop_bin_reldir)/$(scriptFileNameOne)
# export scriptLinkNameOne = change-$(executable)$(linphone_desktop_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-linphone
#
export scriptFileNameOne = uninstall-$(executable)
#
# Full file path to script filename one:
# $(buildroot)/usr/local/linphone-desktop/4.4.0-alpha.16/bin/uninstall-linphone
#
export scriptFullFilePathOne = $(buildroot)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameOne)
#
# Script relative file path to filename one:
# usr/local/linphone-desktop/4.4.0-alpha.16/bin/uninstall-linphone
# usr/local/linphone-desktop/4.4.0/bin/uninstall-linphone
#
export scriptRelFilePathOne = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameOne)
# export scriptRelFilePathOne = $(linphone_desktop_bin_reldir)/$(scriptFileNameOne)
#
# Script linkname one:
# uninstall-linphone440-alpha16
# uninstall-linphone440
#
export linkNameOne = uninstall-$(executable_tag)
#
# Full path to link linkname one:
# $(buildroot)/usr/local/bin/uninstall-linphone440-alpha16
# $(buildroot)/usr/local/bin/uninstall-linphone440
#
export linkFullPathOne = $(buildroot)$(system_bindir)/$(linkNameOne)
#
# Link relative file path one:
# usr/local/bin/uninstall-linphone440-alpha16
# usr/local/bin/uninstall-linphone440
#
export linkRelPathOne = $(system_bin_reldir)/$(linkNameOne)
#
# Script filename two:
# change-linphone-icon
#
export scriptFileNameTwo = change-$(executable)-icon
#
# Full file path to script filename two:
# $(buildroot)/usr/local/linphone-desktop/4.4.0-alpha.16/bin/change-linphone-icon
# $(buildroot)/usr/local/linphone-desktop/4.4.0/bin/change-linphone-icon
#
export scriptFullFilePathTwo = $(buildroot)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameTwo)
#
# Script relative file path to filename two:
# usr/local/linphone-desktop/4.4.0-alpha.16/bin/change-linphone-icon
# usr/local/linphone-desktop/4.4.0/bin/change-linphone-icon
#
export scriptRelFilePathTwo = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameTwo)
# export scriptRelFilePathTwo = $(linphone_desktop_bin_reldir)/$(scriptFileNameTwo)
#
# Script linkname two:
# change-linphone440-alpha16-icon
# change-linphone440-icon
#
export linkNameTwo = change-$(executable_tag)-icon
#
# Full path to link linkname two:
# $(buildroot)/usr/local/bin/change-linphone440-alpha16-icon
# $(buildroot)/usr/local/bin/change-linphone440-icon
#
export linkFullPathTwo = $(buildroot)$(system_bindir)/$(linkNameTwo)
#
# Link relative file path two:
# usr/local/bin/change-linphone440-alpha16-icon
# usr/local/bin/change-linphone440-icon
#
export linkRelPathTwo = $(system_bin_reldir)/$(linkNameTwo)
#
#
# Script filename three:
# auto-start-linphone
#
export scriptFileNameThree = auto-start-$(executable)
#
# Full file path to script filename three:
# $(buildroot)/usr/local/linphone-desktop/4.4.0-alpha.16/bin/auto-start-linphone
# $(buildroot)/usr/local/linphone-desktop/4.4.0/bin/auto-start-linphone
#
export scriptFullFilePathThree = $(buildroot)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameThree)
#
# Script relative file path to filename three:
# usr/local/linphone-desktop/4.4.0-alpha.16/bin/uninstall-linphone
# usr/local/linphone-desktop/4.4.0/bin/uninstall-linphone
#
export scriptRelFilePathThree = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameThree)
export scriptRelFilePathThree = $(linphone_desktop_bin_reldir)/$(scriptFileNameThree)
#
# Script linkname three:
# auto-start-linphone440-alpha16
# auto-start-linphone440
#
export linkNameThree = auto-start-$(executable_tag)
#
# Full path to link linkname three:
# $(buildroot)/usr/local/bin/auto-start-linphone440-alpha16
# $(buildroot)/usr/local/bin/auto-start-linphone440
#
export linkFullPathThree = $(buildroot)$(system_bindir)/$(linkNameThree)
#
# Link relative file path three:
# usr/local/bin/auto-start-linphone440-alpha16
# usr/local/bin/auto-start-linphone440
#
export linkRelPathThree = $(system_bin_reldir)/$(linkNameThree)
#
#
# Script filename four:
# auto-start-linphone-remove
#
export scriptFileNameFour = auto-start-$(executable)-remove
#
# Full file path to script filename four:
# $(buildroot)/usr/local/linphone-desktop/4.4.0-alpha.16/bin/auto-start-linphone-remove
# $(buildroot)/usr/local/linphone-desktop/4.4.0/bin/auto-start-linphone-remove
#
export scriptFullFilePathFour = $(buildroot)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameFour)
#
# Script relative file path to filename four:
# usr/local/linphone-desktop/4.4.0-alpha.16/bin/uninstall-linphone-remove
# usr/local/linphone-desktop/4.4.0/bin/uninstall-linphone-remove
#
export scriptRelFilePathFour = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameFour)
export scriptRelFilePathFour = $(linphone_desktop_bin_reldir)/$(scriptFileNameFour)
#
# Script linkname four:
# auto-start-linphone440-alpha16-remove
# auto-start-linphone440-remove
#
export linkNameFour = auto-start-$(executable_tag)-remove
#
# Full path to link linkname four:
# $(buildroot)/usr/local/bin/auto-start-linphone440-alpha16-remove
# $(buildroot)/usr/local/bin/auto-start-linphone440-remove
#
export linkFullPathFour = $(buildroot)$(system_bindir)/$(linkNameFour)
#
# Link relative file path four:
# usr/local/bin/auto-start-linphone440-alpha16-remove
# usr/local/bin/auto-start-linphone440-remove
#
export linkRelPathFour = $(system_bin_reldir)/$(linkNameFour)
#
# Script filename five:
# pre-uninstall-linphone
#
export scriptFileNameFive = pre-uninstall-$(executable)
#
# Full file path to script filename five:
# $(buildroot)/usr/local/linphone-desktop/4.4.0-alpha.16/bin/pre-uninstall-linphone
#
export scriptFullFilePathFive = $(buildroot)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameFive)
#
# Script relative file path to filename five:
# usr/local/linphone-desktop/4.4.0-alpha.16/bin/pre-uninstall-linphone
# usr/local/linphone-desktop/4.4.0/bin/pre-uninstall-linphone
#
export scriptRelFilePathFive = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameFive)
# export scriptRelFilePathFive = $(linphone_desktop_bin_reldir)/$(scriptFileNameFive)
#
# Script linkname five:
# pre-uninstall-linphone440-alpha16
# pre-uninstall-linphone440
#
export linkNameFive = pre-uninstall-$(executable_tag)
#
# Full path to link linkname five:
# $(buildroot)/usr/local/bin/pre-uninstall-linphone440-alpha16
# $(buildroot)/usr/local/bin/pre-uninstall-linphone440
#
export linkFullPathFive = $(buildroot)$(system_bindir)/$(linkNameFive)
#
# Link relative file path five:
# usr/local/bin/pre-uninstall-linphone440-alpha16
# usr/local/bin/pre-uninstall-linphone440
#
export linkRelPathFive = $(system_bin_reldir)/$(linkNameFive)
#
# Script filename six:
# set-linphone-xdg-open-gio-mime
#
export scriptFileNameSix = set-$(executable)-xdg-open-gio-mime
#
# Full file path to script filename six:
# $(buildroot)/usr/local/linphone-desktop/4.4.0-alpha.16/bin/set-linphone-xdg-open-gio-mime
#
export scriptFullFilePathSix = $(buildroot)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameSix)
#
# Script relative file path to filename six:
# usr/local/linphone-desktop/4.4.0-alpha.16/bin/set-linphone-xdg-open-gio-mime
# usr/local/linphone-desktop/4.4.0/bin/set-linphone-xdg-open-gio-mime
#
export scriptRelFilePathSix = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameSix)
# export scriptRelFilePathSix = $(linphone_desktop_bin_reldir)/$(scriptFileNameSix)
#
# Script linkname six:
# set-linphone440-alpha16-xdg-open-gio-mime
# set-linphone440-xdg-open-gio-mime
#
export linkNameSix = set-$(executable_tag)-xdg-open-gio-mime
#
# Full path to link linkname six:
# $(buildroot)/usr/local/bin/set-linphone440-alpha16-xdg-open-gio-mime
# $(buildroot)/usr/local/bin/set-linphone440-xdg-open-gio-mime
#
export linkFullPathSix = $(buildroot)$(system_bindir)/$(linkNameSix)
#
# Link relative file path six:
# usr/local/bin/set-linphone440-alpha16-xdg-open-gio-mime
# usr/local/bin/set-linphone440-xdg-open-gio-mime
#
export linkRelPathSix = $(system_bin_reldir)/$(linkNameSix)
#
# Script filename seven:
# fix-linphone-xdg-open-sip-sips-tel-callto
#
export scriptFileNameSeven = fix-$(executable)-xdg-open-sip-sips-tel-callto
#
# Full file path to script filename seven:
# $(buildroot)/usr/local/linphone-desktop/4.4.0-alpha.16/bin/fix-linphone-xdg-open-sip-sips-tel-callto
#
export scriptFullFilePathSeven = $(buildroot)$(linphone_desktop_install_prefix)/bin/$(scriptFileNameSeven)
#
# Script relative file path to filename seven:
# usr/local/linphone-desktop/4.4.0-alpha.16/bin/fix-linphone-xdg-open-sip-sips-tel-callto
# usr/local/linphone-desktop/4.4.0/bin/fix-linphone-xdg-open-sip-sips-tel-callto
#
export scriptRelFilePathSeven = $(linphone_desktop_install_reldir)/bin/$(scriptFileNameSeven)
# export scriptRelFilePathSeven = $(linphone_desktop_bin_reldir)/$(scriptFileNameSeven)
#
# Script linkname seven:
# fix-linphone440-alpha16-xdg-open-sip-sips-tel-callto
# fix-linphone440-xdg-open-sip-sips-tel-callto
#
export linkNameSeven = fix-$(executable_tag)-xdg-open-sip-sips-tel-callto
#
# Full path to link linkname seven:
# $(buildroot)/usr/local/bin/fix-linphone440-alpha16-xdg-open-sip-sips-tel-callto
# $(buildroot)/usr/local/bin/fix-linphone440-xdg-open-sip-sips-tel-callto
#
export linkFullPathSeven = $(buildroot)$(system_bindir)/$(linkNameSeven)
#
# Link relative file path seven:
# usr/local/bin/fix-linphone440-alpha16-xdg-open-sip-sips-tel-callto
# usr/local/bin/fix-linphone440-xdg-open-sip-sips-tel-callto
#
export linkRelPathSeven = $(system_bin_reldir)/$(linkNameSeven)
#
export linphone_desktop_icon_name = $(executable)$(linphone_desktop_condensed_tag)
export linphone_desktop_icon_filename = $(linphone_desktop_icon_name).svg
export linphone_desktop_invisible_icon_name = $(executable)invisible$(linphone_desktop_condensed_tag)
export linphone_desktop_invisible_icon_filename = $(executable)invisible$(linphone_desktop_condensed_tag).svg
export linphone_desktop_web_icon_name=$(linphone_standard_web_icon_name)$(linphone_desktop_condensed_tag)
export linphone_desktop_web_icon_filename=$(linphone_desktop_web_icon_name).svg
export iconFileNameOne = $(executable)$(linphone_desktop_condensed_tag).svg
export iconFullFilePathOne = $(buildroot)$(system_scalable_icondir)/$(iconFileNameOne)
export linphone_standard_icon_name = $(executable)
export linphone_standard_icon_name = $(executable)_gray_01
export linphone_standard_icon_filename = $(linphone_standard_icon_name).svg
export linphone_standard_invisible_icon_name = $(executable)invisible
export linphone_standard_invisible_icon_filename = $(linphone_standard_invisible_icon_name).svg
export linphone_standard_web_icon_name=$(executable)systemtray
export linphone_standard_web_icon_filename=$(linphone_standard_web_icon_name).svg
export linphone_invisible_icon_name = $(executable)invisible
export linphone_invisible_icon_filename = $(linphone_invisible_icon_name).svg
export linphone_web_icon_name=$(linphone_standard_web_icon_name)
export linphone_web_icon_filename=$(linphone_standard_web_icon_filename)
export linphone_alpha_icon_name = $(executable)_alpha
export linphone_alpha_icon_name = $(executable)_gray_01
export linphone_alpha_icon_filename = $(linphone_alpha_icon_name).svg
export linphone_beta_icon_name = $(executable)_beta
export linphone_beta_icon_name = $(executable)_gray_01
export linphone_beta_icon_filename = $(linphone_beta_icon_name).svg
export linphone_extra_icon_name_one = $(executable)_orange_01
export linphone_extra_icon_filename_one = $(executable)_orange_01.svg
export linphone_extra_icon_name_two = $(executable)_gray_01
export linphone_extra_icon_filename_two = $(executable)_gray_01.svg
export linphone_extra_icon_name_three = $(executable)_gray_02
export linphone_extra_icon_filename_three = $(executable)_gray_02.svg
export linphone_extra_icon_name_four = $(executable)_green_01
export linphone_extra_icon_filename_four = $(executable)_green_01.svg
export linphone_extra_icon_name_five = $(executable)_gray_03
export linphone_extra_icon_filename_five = $(executable)_gray_03.svg
export linphone_extra_icon_name_six = $(executable)_blue_01
export linphone_extra_icon_filename_six = $(executable)_blue_01.svg
export TITLE = $(executableHumanFormat) $(linphone_version)
export menuFileNameOne = $(executable_tag).desktop
export menuFullFilePathOne = $(buildroot)$(system_app_launchers_prefix)/$(menuFileNameOne)
export menuFileNameTwo = $(executable_tag)-minimized.desktop
export menuFullFilePathTwo = $(buildroot)$(linphone_desktop_install_prefix)/share/applications/$(menuFileNameTwo)
ifdef RELEASE
# Release
export mimeXMLfileName = $(packager_lowercase)-$(app_name).xml
export mimeLibFileName = $(packager_lowercase)-$(app_name)
else
# Alpha or beta versions
export mimeXMLfileName = $(packager_lowercase)-$(app_name)-$(linphone_desktop_alphabeta).xml
export mimeLibFileName = $(packager_lowercase)-$(app_name)-$(linphone_desktop_alphabeta)
endif
export mimeXMLfullFilePath = $(buildroot)/usr/share/mime/packages/$(mimeXMLfileName)
export mimeXMLfullInstallToDirPath = $(buildroot)/usr/share/mime/packages
export mimeLibFullFilePath = $(buildroot)/usr/lib/mime/packages/$(mimeLibFileName)
export mimeLibFullInstallToDirPath = $(buildroot)/usr/lib/mime/packages
export LINPHONE_DESTDIR = $(linphone_desktop_install_prefix)
%:
#dh $@ --buildsystem=cmake --builddirectory=build
dh $@ --buildsystem=cmake
configure:
echo ISRELEASE=$$ISRELEASE
if [ "$$RELEASE" = "$$YES" ]; then \
echo "configure Equal"; \
echo "Release:"; \
else \
echo "configure Un Equal"; \
echo "Alpha or beta versions:"; \
fi
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
override_dh_auto_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 "wantedJobs=$$wantedJobs"
echo "jobsIget=$$jobsIget"
echo "--- End machine data we are building on ---"
echo ISRELEASE=$$ISRELEASE
if [ "$$RELEASE" = "$$YES" ]; then \
echo "configure Equal"; \
echo "Release:"; \
else \
echo "configure Un Equal"; \
echo "Alpha or beta versions:"; \
fi
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
# Not working
#ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
#echo "This is Ubuntu"
#endif
#ifeq ($(shell dpkg-vendor --is Debian && echo yes),yes)
#echo "This is Debian"
#endif
echo "--- List variables for: $(executable) ---"
echo "app_name=$(app_name)"
echo "auto_start_script_filename=$(auto_start_script_filename)"
echo "buildroot=$(buildroot)"
echo "DH_VERBOSE=$(DH_VERBOSE)"
echo "DISTRO_VERSION=$(DISTRO_VERSION)"
echo "DISTRO=$(DISTRO)"
echo "DISTROVERSION=$(DISTROVERSION)"
echo "executable_tag=$(executable_tag)"
echo "executable=$(executable)"
echo "executableHumanFormat=$(executableHumanFormat)"
echo "packagerHumanFormat=$(packagerHumanFormat)"
echo "packager_lowercase=$(packager_lowercase)"
echo "packager_uppercase=$(packager_uppercase)"
echo "deb_name=$(deb_name)"
echo "executable_tag_lowercase=$(executable_tag_lowercase)"
echo "executable_tag=$(executable_tag)"
echo "executable_tag_uppercase=$(executable_tag_uppercase)"
echo "manpage_date=$(manpage_date)"
echo "linphone_standard_icon_filename=$(linphone_standard_icon_filename)"
echo "linphone_standard_icon_name=$(linphone_standard_icon_name)"
echo
echo "linphone_standard_web_icon_filename=$(linphone_standard_web_icon_filename)"
echo "linphone_standard_web_icon_name=$(linphone_standard_web_icon_name)"
echo
echo "linphone_standard_invisible_icon_filename=$(linphone_standard_invisible_icon_filename)"
echo "linphone_standard_invisible_icon_name=$(linphone_standard_invisible_icon_name)"
echo
echo "linphone_alpha_icon_filename=$(linphone_alpha_icon_filename)"
echo "linphone_alpha_icon_name=$(linphone_alpha_icon_name)"
echo "linphone_beta_icon_filename=$(linphone_beta_icon_filename)"
echo "linphone_beta_icon_name=$(linphone_beta_icon_name)"
echo "linphone_desktop_alphabeta_number=$(linphone_desktop_alphabeta_number)"
echo "linphone_desktop_alphabeta_version=$(linphone_desktop_alphabeta_version)"
echo "linphone_desktop_alphabeta=$(linphone_desktop_alphabeta)"
echo "linphone_desktop_app_launchers_prefix=$(linphone_desktop_app_launchers_prefix)"
echo "linphone_desktop_bindir=$(linphone_desktop_bindir)"
echo "linphone_desktop_condensed_tag=$(linphone_desktop_condensed_tag)"
echo "linphone_desktop_icon_name=$(linphone_desktop_icon_name)"
echo "linphone_desktop_icon_filename=$(linphone_desktop_icon_filename)"
echo
echo "linphone_desktop_invisible_icon_filename=$(linphone_desktop_invisible_icon_filename)"
echo "linphone_desktop_invisible_icon_name=$(linphone_desktop_invisible_icon_name)"
echo
echo "linphone_desktop_web_icon_filename=$(linphone_desktop_web_icon_filename)"
echo "linphone_desktop_web_icon_name=$(linphone_desktop_web_icon_name)"
echo
echo "linphone_desktop_install_dir_parent_dir=$(linphone_desktop_install_dir_parent_dir)"
echo "linphone_desktop_install_dir=$(linphone_desktop_install_dir)"
echo "linphone_desktop_install_man_prefix=$(linphone_desktop_install_man_prefix)"
echo "linphone_desktop_install_man_reldir=$(linphone_desktop_install_man_reldir)"
echo "linphone_desktop_install_prefix=$(linphone_desktop_install_prefix)"
echo "linphone_desktop_install_parent_reldir=$(linphone_desktop_install_parent_reldir)"
echo "linphone_desktop_install_reldir=$(linphone_desktop_install_reldir)"
echo "linphone_desktop_install_scripts_dir=$(linphone_desktop_install_scripts_dir)"
echo "linphone_desktop_install_scripts_prefix=$(linphone_desktop_install_scripts_prefix)"
echo "linphone_desktop_install_scripts_reldir=$(linphone_desktop_install_scripts_reldir)"
echo "linphone_desktop_install_share_prefix=$(linphone_desktop_install_share_prefix)"
echo "linphone_desktop_install_share_reldir=$(linphone_desktop_install_share_reldir)"
echo "linphone_desktop_major_version=$(linphone_desktop_major_version)"
echo "linphone_desktop_micro_version=$(linphone_desktop_micro_version)"
echo "linphone_desktop_minor_version=$(linphone_desktop_minor_version)"
echo "linphone_desktop_bin_reldir=$(linphone_desktop_bin_reldir)"
echo "linphone_desktop_release_version=$(linphone_desktop_release_version)"
echo "linphone_desktop_scalable_hicolor_icons_prefix=$(linphone_desktop_scalable_hicolor_icons_prefix)"
echo "linphone_desktop_scalable_hicolor_icons_reldir=$(linphone_desktop_scalable_hicolor_icons_reldir)"
echo "linphone_desktop_web_hicolor_icons_prefix=$(linphone_desktop_web_hicolor_icons_prefix)"
echo "linphone_desktop_web_hicolor_icons_reldir=$(linphone_desktop_web_hicolor_icons_reldir)"
echo "linphone_desktop_tag=$(linphone_desktop_tag)"
echo "linphone_desktop_version=$(linphone_desktop_version)"
echo "LINPHONE_DESTDIR=$(LINPHONE_DESTDIR)"
echo "LINPHONE_DIR=$(LINPHONE_DIR)"
echo "linphone_extra_icon_filename_one=$(linphone_extra_icon_filename_one)"
echo "linphone_extra_icon_filename_two=$(linphone_extra_icon_filename_two)"
echo "linphone_extra_icon_name_one=$(linphone_extra_icon_name_one)"
echo "linphone_extra_icon_name_two=$(linphone_extra_icon_name_two)"
echo "linphone_sdk_release_version=$(linphone_sdk_release_version)"
echo "linphone_sdk_version=$(linphone_sdk_version)"
echo "linphone_version=$(linphone_version)"
echo "manpage=$(manpage)"
echo "menuFileNameOne=$(menuFileNameOne)"
echo "menuFileNameTwo=$(menuFileNameTwo)"
echo "mimeXMLfileName=$(mimeXMLfileName)"
echo "mimeXMLfullFilePath=$(mimeXMLfullFilePath)"
echo "mimeXMLfullInstallToDirPath=$(mimeXMLfullInstallToDirPath)"
echo "mimeLibFileName=$(mimeLibFileName)"
echo "mimeLibFullInstallToDirPath=$(mimeLibFullInstallToDirPath)"
echo "mimeLibFullFilePath=$(mimeLibFullFilePath)"
echo "menuFullFilePathOne=$(menuFullFilePathOne)"
echo "menuFullFilePathTwo=$(menuFullFilePathTwo)"
echo "packager=$(packager)"
echo "PREFIX=$(PREFIX)"
echo "remove_auto_start_script_filename=$(remove_auto_start_script_filename)"
echo "scalable_hicolor_icons_reldir=$(scalable_hicolor_icons_reldir)"
echo "web_hicolor_icons_reldir=$(web_hicolor_icons_reldir)"
echo "scriptFileNameOne=$(scriptFileNameOne)"
echo "scriptFileNameTwo=$(scriptFileNameTwo)"
echo "scriptFileNameThree=$(scriptFileNameThree)"
echo "scriptFileNameFour=$(scriptFileNameFour)"
echo "scriptFileNameFive=$(scriptFileNameFive)"
echo "scriptFileNameSix=$(scriptFileNameSix)"
echo "scriptFileNameSeven=$(scriptFileNameSeven)"
echo "scriptFullFilePathOne=$(scriptFullFilePathOne)"
echo "scriptFullFilePathTwo=$(scriptFullFilePathTwo)"
echo "scriptFullFilePathThree=$(scriptFullFilePathThree)"
echo "scriptFullFilePathFour=$(scriptFullFilePathFour)"
echo "scriptFullFilePathFive=$(scriptFullFilePathFive)"
echo "scriptFullFilePathSix=$(scriptFullFilePathSix)"
echo "scriptFullFilePathSeven=$(scriptFullFilePathSeven)"
echo "scriptRelFilePathOne=$(scriptRelFilePathOne)"
echo "scriptRelFilePathTwo=$(scriptRelFilePathTwo)"
echo "scriptRelFilePathThree=$(scriptRelFilePathThree)"
echo "scriptRelFilePathFour=$(scriptRelFilePathFour)"
echo "scriptRelFilePathFive=$(scriptRelFilePathFive)"
echo "scriptRelFilePathSix=$(scriptRelFilePathSix)"
echo "scriptRelFilePathSeven=$(scriptRelFilePathSeven)"
echo "linkFileNameOne=$(linkFileNameOne)"
echo "linkFileNameTwo=$(linkFileNameTwo)"
echo "linkFileNameThree=$(linkFileNameThree)"
echo "linkFileNameFour=$(linkFileNameFour)"
echo "linkFileNameFive=$(linkFileNameFive)"
echo "linkFileNameSix=$(linkFileNameSix)"
echo "linkFileNameSeven=$(linkFileNameSeven)"
echo "linkFullPathOne=$(linkFullPathOne)"
echo "linkFullPathTwo=$(linkFullPathTwo)"
echo "linkFullPathThree=$(linkFullPathThree)"
echo "linkFullPathFour=$(linkFullPathFour)"
echo "linkFullPathFive=$(linkFullPathFive)"
echo "linkFullPathSix=$(linkFullPathSix)"
echo "linkFullPathSeven=$(linkFullPathSeven)"
echo "linkRelPathOne=$(linkRelPathOne)"
echo "linkRelPathTwo=$(linkRelPathTwo)"
echo "linkRelPathThree=$(linkRelPathThree)"
echo "linkRelPathFour=$(linkRelPathFour)"
echo "linkRelPathFive=$(linkRelPathFive)"
echo "linkRelPathSix=$(linkRelPathSix)"
echo "linkRelPathSeven=$(linkRelPathSeven)"
echo "system_app_launchers_prefix=$(system_app_launchers_prefix)"
echo "system_bindir=$(system_bindir)"
echo "system_mandir=$(system_mandir)"
echo "system_man_reldir=$(system_man_reldir)"
echo "system_scalable_hicolor_icons_prefix=$(system_scalable_hicolor_icons_prefix)"
echo "system_web_hicolor_icons_prefix=$(system_web_hicolor_icons_prefix)"
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 ---"
mkdir -pv /home/abuild/build/linphone-sdk/desktop/bin
mkdir -pv /home/abuild/build/linphone-sdk/desktop/share
mkdir -pv /home/abuild/build/linphone-sdk/desktop/etc
mkdir -pv /home/abuild/build/linphone-sdk/desktop/include
mkdir -pv /home/abuild/build/linphone-sdk/desktop/lib
mkdir -pv /home/abuild/build/linphone-sdk/desktop/lib64
mkdir -pv /home/abuild/build/linphone-sdk/desktop/man
mkdir -pv /home/abuild/build/linphone-sdk/desktop/sbin
mkdir -pv /home/abuild/build/linphone-sdk/desktop/src
echo "--- End make some fixes to correct for bugs ---"
mkdir -p -v $(buildroot)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_parent_reldir)
mkdir -p -v $(buildroot)/$(linphone_desktop_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)$(linphone_desktop_install_dir_parent_dir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_dir_parent_dir)/$(linphone_version)
mkdir -p -v $(buildroot)$(linphone_desktop_install_dir)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_parent_reldir)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_parent_reldir)/$(linphone_version)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_reldir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_dir)
mkdir -p -v $(buildroot)$(LINPHONE_DESTDIR)
mkdir -p -v $(buildroot)/$(system_man_reldir)
mkdir -p -v $(buildroot)/$(system_share_reldir)
mkdir -p -v $(buildroot)/debian/$(packager)-$(app_name)-$(linphone_desktop_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)$(linphone_desktop_install_prefix)/share/applications
mkdir -p -v $(buildroot)$(linphone_desktop_app_launchers_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_bindir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_dir_parent_dir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_dir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_man_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/bin
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/man/man1
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/share/applications
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_dir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/share/applications
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)/applications
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)$(linphone_desktop_scalable_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_web_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(LINPHONE_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_web_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)/usr/local/$(app_name)/$(linphone_version)/share/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)/usr/local/$(app_name)/$(linphone_version)/share/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)/usr/share/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)/usr/share/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)$(linphone_desktop_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)$(system_web_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/$(web_hicolor_icons_reldir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_prefix)/share/applications
mkdir -p -v $(buildroot)$(linphone_desktop_app_launchers_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_bindir)
mkdir -p -v $(buildroot)$(system_app_launchers_prefix)
mkdir -p -v $(buildroot)$(system_bindir)
mkdir -p -v $(buildroot)$(system_mandir)
mkdir -p -v $(buildroot)/usr/local/$(app_name)/$(linphone_version)/man/man1
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/man/man1
mkdir -p -v $(buildroot)$(linphone_desktop_install_man_prefix)
mkdir -p -v $(buildroot)$(system_sharedir)
mkdir -p -v $(buildroot)$(system_share_reldir)
mkdir -p -v $(buildroot)$(linphone_desktop_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"
which convert
which inkscape
find . -type f -name genicons_1.1.sh -exec {} \;
echo "If source file lacks configure.h.in and Makefile"
echo "Running command: dh_autoreconf"
dh_autoreconf
echo "Running command: \
cmake . \
-B $$HOME/build -S /usr/src/packages/BUILD \
-DCMAKE_BUILD_PARALLEL_LEVEL=$(jobsIget) \
-DCMAKE_BUILD_TYPE=RelWithDebInfo" \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DENABLE_UPDATE_CHECK=OFF
mkdir -p /usr/src/packages/BUILD
cmake . \
-B $$HOME/build -S /usr/src/packages/BUILD \
-DCMAKE_BUILD_PARALLEL_LEVEL=$(jobsIget) \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DENABLE_UPDATE_CHECK=OFF
echo "Configuration should have completed here."
echo "Running command: cmake --build . --target install --parallel $(jobsIget) --config RelWithDebInfo"
cmake --build $$HOME/build --target install --parallel $(jobsIget) --config RelWithDebInfo
echo "Build should have completed here."
override_dh_shlibdeps:
dh_shlibdeps -O--buildsystem=cmake -v -l/home/abuild/build/OUTPUT/lib --dpkg-shlibdeps-params=--ignore-missing-info
override_dh_auto_install:
echo "--- Entering section override_dh_autoinstall: ---"
echo "--- Creating directories needed for installation ---"
echo "Creating directory build ..."
mkdir -pv $$HOME/build
echo "--- Make some fixes to correct for bugs ---"
mkdir -pv /home/abuild/build/linphone-sdk/desktop/bin
mkdir -pv /home/abuild/build/linphone-sdk/desktop/share
mkdir -pv /home/abuild/build/linphone-sdk/desktop/etc
mkdir -pv /home/abuild/build/linphone-sdk/desktop/include
mkdir -pv /home/abuild/build/linphone-sdk/desktop/lib
mkdir -pv /home/abuild/build/linphone-sdk/desktop/lib64
mkdir -pv /home/abuild/build/linphone-sdk/desktop/man
mkdir -pv /home/abuild/build/linphone-sdk/desktop/sbin
mkdir -pv /home/abuild/build/linphone-sdk/desktop/src
echo "--- End make some fixes to correct for bugs ---"
mkdir -p -v $(buildroot)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_parent_reldir)
mkdir -p -v $(buildroot)/$(linphone_desktop_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)/$(linphone_desktop_install_dir_parent_dir)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_dir_parent_dir)/$(linphone_version)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_dir)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_parent_reldir)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_parent_reldir)/$(linphone_version)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_reldir)
mkdir -p -v $(buildroot)/$(linphone_desktop_install_scripts_dir)
mkdir -p -v $(buildroot)/$(LINPHONE_DESTDIR)
mkdir -p -v $(buildroot)/$(system_man_reldir)
mkdir -p -v $(buildroot)/$(system_share_reldir)
if [ "$$RELEASE" = "$$YES" ]; then \
echo "Release:"; \
mkdir -p -v $(buildroot)/debian/$(packager)-$(app_name); \
else \
echo "Alpha or beta versions:"; \
mkdir -p -v $(buildroot)/debian/$(packager)-$(app_name)-$(linphone_desktop_alphabeta); \
fi
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)$(linphone_desktop_app_launchers_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_bindir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_dir_parent_dir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_dir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_man_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/bin
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/man/man1
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/share/applications
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/share/mime/packages
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_dir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_prefix)/share/applications
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_prefix)/share/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_prefix)/share/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)/applications
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)$(linphone_desktop_install_share_prefix)/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)$(linphone_desktop_scalable_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_web_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(LINPHONE_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_web_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)/usr/local/$(app_name)/$(linphone_version)/share/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)/usr/local/$(app_name)/$(linphone_version)/share/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)/usr/share/icons/hicolor/scalable/apps
mkdir -p -v $(buildroot)/usr/share/icons/hicolor/scalable/web
mkdir -p -v $(buildroot)$(linphone_desktop_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)$(system_web_hicolor_icons_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/$(web_hicolor_icons_reldir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_scripts_prefix)/share/applications
mkdir -p -v $(buildroot)$(linphone_desktop_app_launchers_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_bindir)
mkdir -p -v $(buildroot)/usr/share/applications
mkdir -p -v $(buildroot)$(system_app_launchers_prefix)
mkdir -p -v $(buildroot)/usr/local/bin
mkdir -p -v $(buildroot)$(system_bindir)
mkdir -p -v $(buildroot)/usr/local/man/man1
mkdir -p -v $(buildroot)$(system_mandir)
mkdir -p -v $(buildroot)/usr/local/$(app_name)/$(linphone_version)/man/man1
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/man/man1
mkdir -p -v $(buildroot)$(linphone_desktop_install_man_prefix)
mkdir -p -v $(buildroot)$(system_sharedir)
mkdir -p -v $(buildroot)$(system_share_reldir)
mkdir -p -v $(buildroot)$(linphone_desktop_install_prefix)/share/applications
echo "--- End creating directories ---"
echo "--- Listing contents of $$(pwd) build: ---"
echo "--- Listing contents of debian : ---"
find debian
echo "--- End listing contents of debian ---"
echo "Copy all that has been successfully built ..."
cp -rpv /home/abuild/build/OUTPUT/* $(buildroot)$(linphone_desktop_install_prefix)
echo "Making $(buildroot)$(linphone_desktop_install_prefix)/$(web_hicolor_icons_reldir)/$(linphone_desktop_web_icon_name).svg"
echo "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill=\"#bebebe\" d=\"M11.2 0c-.7 0-1.3.5-1.3 1.2V5c0 .7.6 1.2 1.3 1.2h.8c-.8 2.8-3 5-5.8 5.8v-.8c0-.7-.5-1.3-1.2-1.3H1.3c-.7 0-1.2.6-1.2 1.3V13a3 3 0 0 0 3 3h.7C10.6 16 16 10.5 16 3.8V3a3 3 0 0 0-3-3zm0 0\"/></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/$(web_hicolor_icons_reldir)/$(linphone_web_icon_filename)
echo "$(system_scalable_hicolor_icons_prefix)/$(linphone_desktop_web_icon_filename)"
echo "Making $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_desktop_invisible_icon_name).svg"
echo "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 128 128\"><defs><radialGradient xlink:href=\"#a\" id=\"b\" cx=\"123\" cy=\"32.6\" r=\"163.8\" fx=\"123\" fy=\"32.6\" gradientTransform=\"matrix(-.01834 1.17214 -1.03732 -.01623 -248.6 166.6)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient id=\"a\"><stop offset=\"0\" stop-color=\"#7f9195\"/><stop offset=\"1\" stop-color=\"#809296\" stop-opacity=\"0\"/></linearGradient></defs><path fill=\"#00252d\" d=\"M32.5 8.3a64 64 0 0 1 87.2 24.2 64 64 0 0 1-24.1 87.2A64 64 0 0 1 8.3 95.6 64 64 0 0 1 32.4 8.3\"/><path fill=\"url(#b)\" d=\"M-362.6 49.1A161 161 0 0 1-143 110a161 161 0 0 1-61 219.3 161 161 0 0 1-219.4-60.6 161 161 0 0 1 60.6-219.5\" transform=\"matrix(.36134 0 0 .3614 166.3 -4.4)\"/><path fill=\"#034c57\" d=\"M78.4 116.8c-.9-1.4-1.4-7.9-2-25.4-.6-16.3-1-20-1.7-20-.6 0-.8 1.6-1 11.2-.1 10-.3 12.4-1 13.7-.5 1-.7 1-1.2.5-.6-1-.8-2.8-1-12.3a86 86 0 0 0-.5-9.9c-.5-.7-.7.9-.8 6.8a74 74 0 0 1-.4 7c-.4 2.3-1.7 2.2-2.1 0a92 92 0 0 1-.4-7.8c-.2-6.4-.4-7.8-1-7.8-.9 0-1.3 2.5-1.7 10.3-1 16-1.5 19.6-2.8 19.6-.8 0-1.3-1-3.5-8-2.1-6.7-3.8-9.4-5.8-9.4-1.7 0-1.7 0-1.8 8 0 4.7-.2 7-.3 7.3-.5.6-.6-.8-1-10.4-.7-13.3-1.2-17-2.1-15.3-.3.4-.4 2.3-.4 8.3-.2 7.9-.3 9.3-1 9.7-.6.2-.8-1.4-1-7.2-.4-12.4-1-15.5-3-16.7-1-.7-1.3-.2-1.3 2.6 0 2.8 0 3.4-.6 3.4s-.8-.8-1-3.5c-.3-2.2-.7-3.1-1.3-2.8-.4.2-.4 3 0 7 .2 3.2 0 4.6-.8 4.7-.8.1-1.2-1.3-1.7-6.5-.4-4.7-.8-6.2-1.4-6.2-.6 0-.8.7-1.3 4.1-.5 3.3-.8 4.2-1.7 4.8-.8.5-1.3-.4-1.4-3.5-.2-3.5-.5-4.7-1.2-5.5-1-1.2-3.3-.3-3.5 1.4 0 .5-.2.6-.7.6-.6 0-.7-.2-1.1-1.3-.6-1.6-1.2-2.5-1.9-2.5-.2 0-.8-.2-1.1-.6-.7-.5-1.2-.6-4.9-.7-3.5 0-4.1-.1-4.1-.5s.6-.5 4.2-.6c3.3-.1 4.3-.3 4.8-.7a5 5 0 0 1 1.3-.7c.8-.2 1.1-.6 1.7-2.4.3-1 .6-1.3 1-1.3.5-.1.6 0 1 1 .3 1 .5 1.2 1.3 1.5 2.1.5 2.8-.6 3.2-5.3.1-1.9.3-3.6.5-3.8.7-1.3 2 .3 2.4 3l.4 3.3c.4 2.4 1.2 3 1.8 1.4.2-.5.5-3 .8-5.4.5-5.2.8-6.5 1.6-6.4.8.1 1 1.3.7 4.9-.3 4.5-.3 6.6.1 6.8.6.3 1-.6 1.2-2.8.3-2.7.5-3.5 1-3.5.6 0 .7.6.7 3.4S40 59.7 41 59c2-1.2 2.5-4.3 2.9-16.5.2-6 .4-7.6 1-7.4.7.4.8 1.9 1 9.5 0 8 .3 9.6 1 8.7.5-.8.9-4.5 1.3-13.3.5-10 .7-12 .9-12.5.4-1 .5.7.6 7.3 0 6.7 0 7 .5 7.4.3.3 1 .5 1.4.5 2 0 3.5-2.6 6-10.4 2-6 2.5-7 3.2-7 1.3.2 1.8 3.5 2.6 16 .7 11.5 1 13.6 1.8 13.8.7.2 1-1.1 1-7.7.2-3.5.3-7 .5-7.7.4-2.2 1.6-2.4 2.1-.3.2.6.3 3.4.4 7.1 0 4.3.2 6.4.4 6.7.5 1.1.7-.6.8-8.6.2-10.1.5-13.2 1.4-13.7.7-.4 1.2.7 1.6 3.4l.4 11.1c.1 9.6.3 11.3 1 11.3.6 0 1-3.8 1.5-19.8C77 18 77.5 12.4 78.5 11c.4-.5.4-.5.7.3.8 1.5.9 6.1.5 20.3-.3 14.5-.3 17.4.3 17.4s.7-1.6.9-12.5c.1-11.6.3-13.5 1-13.7.6-.1 1.2 1 1.5 2.4.6 2.9.7 5.4.9 18.3 0 7.4.2 13.8.3 14 .1.4.3.6.4.5.6-.2.8-2 1.1-8 .3-6.7.6-8.7 1.3-9 1.1-.2 1.4 1.5 1.6 10.1.2 8.2.4 9.6 1.5 9.4 1.1-.2 1.5-2.2 2-10 .3-6.4.7-7.6 1.7-5.4.7 1.7 1 4 1.3 9l.3 5.8c.1.9.6.8 2-.1 1.9-1.2 2.5-1 6 1.3l3 2 5.6.2c4.9.1 5.7.2 5.7.6 0 .4-.8.5-5.7.6l-5.7.2-3 2c-2.9 2-3.2 2.1-4.2 2-.5-.1-1.4-.5-1.9-.8-1.1-.8-1.7-.8-1.8 0l-.3 5.5a90 90 0 0 1-.5 6.2c-.3 1.9-1 4-1.5 4-.5.2-.7-1.3-1.1-7.4-.5-7-1-9-2-9s-1.2 1.5-1.4 9.5c-.2 8.6-.5 10.3-1.6 10-.7-.2-1-2.2-1.2-7.3-.3-6.2-.5-8.8-1-9.4-.7-1.1-.9 1-.9 13.2 0 11.1-.2 15.8-.8 18.9-.3 1.8-1.1 3.1-1.7 2.9-.6-.4-.8-2.5-1-13.7 0-10.9-.2-12.5-.8-12.5-.6 0-.7 3.8-.3 16.8.4 15 .3 20.3-.6 21.3-.3.3-.4.2-.7-.2z\"/><path d=\"M63.5 115.8c-4-1.1-6.3-2-9.8-4a75.9 75.9 0 0 1-22.9-21.3C16.1 72 10.1 54 15.4 43.3c.7-1.4 1.9-3.2 2.6-4l1.4-1.3 4.9 6.2 8.1 10.6 3.4 4.2-.6 1.2c-.8 1.5-.5 4.6.7 7.1 1.6 3.5 10.6 15.6 15.5 20.8 1.2 1.3 3 2.8 4 3.5 1.6 1 2.2 1.2 4 1.1h2.2l1.5 1.9a468.2 468.2 0 0 1 14.3 19c0 .2-1.1.9-2.4 1.5a17.8 17.8 0 0 1-11.5.7zm14.4-4.3c-8.7-11.3-15.4-20-15.4-20.3 0-.9 7-6.2 8.2-6.2.3 0 1.1.8 2 1.7a204 204 0 0 1 14 19c0 1-6.6 6.8-7.7 6.7-.2 0-.7-.4-1.1-1zm-49-64-8-10.6 1-1c2.3-1.8 5.5-4 6.8-4.5l1.3-.6 3.5 4.6c7.6 9.8 11.4 15 11.8 15.9.4.8.3 1-.8 2-2.2 2-6.2 5-6.8 5-.4 0-3.7-4.1-8.7-10.7zm1.3 79.4a.8.8 0 0 0-.6-.3c-.3 0-.3.1 0 .3.8.5.9.5.6 0zm-1.3-.5-.5-.3c-.3-.2-.5-.1-.4.1.3.4 1 .5 1 .2zm-5.6-2.7a.8.8 0 0 0-.6-.4c-.3 0-.2.2.1.4.7.4.8.4.5 0zm31.6 7.7h.7c.1.1-.1.2-.5.2s-.5-.1-.2-.2z\" opacity=\".3\"/><path fill=\"#e0e0e0\" d=\"M67.6 112.9c-4-1-6.3-2-9.8-4a75.9 75.9 0 0 1-22.9-21.3C20.1 69.1 14.2 51.1 19.5 40.4c.7-1.4 1.9-3.2 2.7-4l1.4-1.3 4.8 6.3 8.2 10.5 3.3 4.3-.6 1c-.8 1.6-.5 4.7.7 7.2 1.6 3.5 10.7 15.6 15.6 20.8 1.1 1.3 3 2.8 4 3.5 1.6 1 2.1 1.2 4 1.2l2.2-.1 1.4 2a468.3 468.3 0 0 1 14.3 19c0 .2-1 .8-2.4 1.4a17.8 17.8 0 0 1-11.5.7zm14.4-4.3a629 629 0 0 1-15.3-20.2c0-1 6.9-6.3 8.1-6.3.3 0 1.2.8 2 1.7a204 204 0 0 1 14 19 23 23 0 0 1-7.7 6.8c-.2 0-.7-.5-1.1-1zm-48.9-64-8-10.6 1-.9c2.2-1.9 5.4-4 6.7-4.6l1.3-.5 3.5 4.5c7.6 9.9 11.4 15 11.8 16 .4.7.3 1-.8 2-2.2 2-6.2 4.9-6.8 4.9-.4 0-3.7-4-8.7-10.7z\"/><path fill=\"none\" stroke=\"#85969a\" stroke-width=\"5.5\" d=\"M-362.4 49A161 161 0 0 1-143 109.8a161 161 0 0 1-60.7 219.4A161 161 0 0 1-423 268.6 161 161 0 0 1-362.6 49\" transform=\"matrix(.36134 0 0 .3614 166.3 -4.4)\"/><path fill=\"#e0e0e0\" d=\"M104.2 28.4c-1.9.2-4.7 3.1-4.7 3.1s-5 5-5.2 5a33 33 0 0 0-11.7-2c-5.6 0-10 1-15.3 3.6-4.5 2.1-8 4.7-12.1 8.8-2.8 2.8-4.7 5-6.4 7.7-1.8 2.7-1.7 3.7 1 6.6 3.4 3.7 7.8 7.2 9.6 8.4 1.8 1 0 2.3-1.9 4.2-2 1.3-4 4.8-2.3 7a7 7 0 0 0 3.9 2.8c1.6.3 3.7 0 4.8-1l7.7-7.4 2.8.4 5.8.8a44 44 0 0 0 35.1-15.3c2-2.2 2.4-3.3 2-4.7-.6-1.5-4-5.8-7-9a69.6 69.6 0 0 0-3.7-3.5l-2.4-2.4 5.2-5.7c.7-1.2.8-4-.3-5.5-1-1.4-3.2-2-5-1.9zM82 41.6c1.8-.1 2.7.4 2.7 2 0 1.3-1.3 1.5-3.1 1.7-3.8.5-7.4 2.9-7.8 6.5-.1 1.4-.1 2.7-1 3.3-1.2.4-.6.8-1.8-.4-.4-.7-.4-2.5 0-4.2a12.2 12.2 0 0 1 11-9zm20 2 1.3 1-.6.5-2.3 2.3 1.7 1.3c2 1.7 4.8 4.6 6.6 6.7l1.3 1.7-.4.4a39.2 39.2 0 0 1-19 11.3c-3.4.9-5.6 1-9.3 1l-3.3-.1-2.7 2.7 2.9-3.7 1.6.3c1.3.2 3.9.2 5.2 0 1.6-.3 4.5-.7 6-1.6 1.7-1 4.3-3.7 5.3-5.4.9-1.4 1.6-3.5 2-5.1.2-.8.1-2 0-3.8 0-1.9 0-4.6-.2-5.5l3.2-3.4.6-.7zm-32.6.8c.2 0 0 .1-.2.6-.2.2-1.8 1.2-2.2 2-2.3 5-2.5 10.5.6 15.1l.7 1-1.8 1.7c-.7.8.6 1.2.5 1.2a43.6 43.6 0 0 1-10.7-7.6L55 57.1l1.3-1.6a46 46 0 0 1 13-11.1z\"/><path fill=\"#00252d\" d=\"M59.5 80.2a3 3 0 0 1-1.9-3.5c.2-.6.6-1.1 3.2-3.8l3.1-3.2-.8-.6c-3.2-1.8-7.1-5-10.2-8.3-2.4-2.6-2.6-3.5-1-6a44 44 0 0 1 5.8-6.9c3.8-3.7 7-6 11-8a29 29 0 0 1 13.7-3.3 29.6 29.6 0 0 1 12.1 2.5l4.2-4c3.6-3.6 4.1-4 4.7-4.2 2.5-.7 4.6 2 3.4 4.1a2099.5 2099.5 0 0 1-45.5 45.3c-.8.2-1 .2-1.8 0zM69.9 64l1.2-1.3-.6-.9a14.2 14.2 0 0 1-.2-15.6c.5-.6.4-.6-.4-.2-3.2 1.7-8 5.9-11.2 9.7l-1.1 1.5 1.1 1.2a39.3 39.3 0 0 0 9.7 6.9l1.5-1.3zm5-8.3c.8-.5 1-1 1.1-2.3.4-3.3 2.6-5.4 6-5.8 1.6-.2 2.5-1 2.5-2.2 0-1.8-1.6-2.5-4.5-2-3.7.8-7 4-8 7.9-.4 1.5-.4 3 0 3.7.6 1 2 1.3 3 .7zm5.3 18.9a41 41 0 0 1-6.7-1l2.4-2.6 2.4-2.4h3c3.3.1 5.3 0 8.3-.8a35.2 35.2 0 0 0 17.1-10.2l.4-.4-1.2-1.5c-1.6-2-4.1-4.6-6-6l-1.4-1.3 2-2 2.2-2.1a35 35 0 0 1 4.7 4.2c2.7 2.8 5.7 6.7 6.2 8 .4 1.3 0 2.4-1.8 4.3a42 42 0 0 1-19 12.3 37.8 37.8 0 0 1-12.6 1.5zm-.3-6.7-.8-.1 8.6-8.6c9.8-9.8 8.7-9.1 8.7-5.4 0 1.7 0 2.5-.2 3.3-.4 1.5-1 3.1-1.9 4.4-.9 1.5-3 3.6-4.6 4.6-1.4.8-3.6 1.6-5.1 1.8-1.2.2-3.6.2-4.7 0z\"/></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_invisible_icon_filename)
echo "Making $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_desktop_invisible_icon_name).svg"
echo "alpha icon to distinguish it is a beta version and not a release version"
echo "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"512\" height=\"512\" xml:space=\"preserve\"><path fill=\"#C95328\" d=\"M512 433.229C512 476.562 476.557 512 433.228 512H78.768C35.452 512 0 476.562 0 433.229V78.763C0 35.43 35.452 0 78.768 0h354.46C476.557 0 512 35.43 512 78.763v354.466z\"/><linearGradient id=\"a\" gradientUnits=\"userSpaceOnUse\" x1=\"256.004\" y1=\"498.877\" x2=\"256.004\" y2=\"13.132\"><stop offset=\"0\" style=\"stop-color:#e6b043\"/><stop offset=\".5\" style=\"stop-color:#c95328\"/></linearGradient><path fill=\"url(#a)\" d=\"M78.768 498.877c-36.188 0-65.632-29.438-65.632-65.648V78.763c0-36.21 29.443-65.631 65.632-65.631h354.46c36.202 0 65.645 29.421 65.645 65.631v354.465c0 36.21-29.443 65.648-65.645 65.648H78.768z\"/><path d=\"M473.412 129.19c4.022 16.057 11.006 21.111 14.433 6.539 2.626-12.988-.907-31.173-15.294-50.564-28.484-41.915-103.78-66.186-162.935-44.793-31.137 11.984-24.661 13.922 7.499 7.175 58.118-10.362 116.214 15.009 141.418 51.351 7.501 10.271 12.299 20.659 14.879 30.292z\" style=\"fill:#c95328\" transform=\"rotate(-106.111 271.362 207.454)\"/><path d=\"M419.015 143.098c7.494 14.941 12.717 26.531 19.203 25.729 6.259-.803 15.077-12.937 11.313-29.547-2.509-10.809-8.09-22.524-17.543-33.749-28.203-35.815-93.65-54.292-150.259-31.286-29.453 11.077-49.386 32.979-50.211 36.716-1.109 4.036 18.227-9.882 45.146-18.015 35.711-11.303 76.217-6.516 105.15 11.224 18.366 11.001 30.457 25.282 37.201 38.928z\" style=\"fill:#c95328\" transform=\"rotate(-106.111 271.362 207.454)\"/><path d=\"M272.768 116.451c-23.938 6.501-41.564 24.912-39.126 28.578 2.162 3.725 15.671-.811 29.184-4.844 8.038-2.487 16.081-3.953 23.938-4.465 25.749-1.574 45.468 6.943 57.738 17.625 11.416 9.433 22.448 19.878 31.148 19.694 8.566-.117 15.136-11.611 7.022-24.39-8.806-13.192-24.526-26.198-47.588-32.772-19.007-5.462-41.061-5.518-62.316.574z\" style=\"fill:#c95328\" transform=\"rotate(-106.111 271.362 207.454)\"/><g><path d=\"M471.9 135.938c4.029 16.063 11.007 21.124 14.451 6.533 2.614-12.977-.917-31.161-15.322-50.563-28.482-41.924-103.761-66.172-162.917-44.792-31.146 11.995-24.653 13.946 7.502 7.184 58.08-10.377 116.211 14.988 141.407 51.347 7.508 10.277 12.302 20.639 14.879 30.291z\" style=\"fill:#fff\" transform=\"scale(-1 1) rotate(-40.555 170.67 793.864)\"/><path d=\"M417.504 149.867c7.505 14.928 12.724 26.518 19.188 25.708 6.278-.797 15.089-12.928 11.332-29.564-2.513-10.809-8.095-22.504-17.548-33.728C402.261 76.469 336.838 58 280.209 81.002c-29.433 11.073-49.345 32.962-50.192 36.706-1.089 4.03 18.224-9.864 45.125-17.983 35.73-11.315 76.235-6.557 105.167 11.199 18.359 11.009 30.453 25.299 37.195 38.943z\" style=\"fill:#fff\" transform=\"scale(-1 1) rotate(-40.555 170.67 793.864)\"/><path d=\"M271.267 123.201c-23.948 6.485-41.572 24.917-39.134 28.582 2.168 3.729 15.69-.8 29.175-4.826 8.052-2.511 16.09-3.969 23.948-4.463 25.726-1.586 45.473 6.911 57.743 17.604 11.416 9.432 22.457 19.879 31.142 19.694 8.571-.115 15.134-11.604 7.032-24.405-8.817-13.18-24.553-26.163-47.588-32.739-19.003-5.465-41.07-5.554-62.318.553z\" style=\"fill:#fff\" transform=\"scale(-1 1) rotate(-40.555 170.67 793.864)\"/></g><path fill=\"none\" d=\"M78.768 499.246c-36.188 0-65.632-29.439-65.632-65.649V79.132c0-36.211 29.443-65.632 65.632-65.632h354.46c36.202 0 65.645 29.421 65.645 65.632v354.465c0 36.21-29.443 65.649-65.645 65.649H78.768z\"/><g><path d=\"M137.141 473.474c29.627 7.798 61.013 10.667 86.881 4.377 48.737-11.859 64.443-28.113 61.93-68.991 0 0 .908-19.719-40.68-18.982-9.21.167-32.732 5.088-36.07 15.193-3.342 10.114 1.719 20.368 1.991 25.324.272 4.956-13.443 11.676-19.206 12.246-7.496.736-26.381-.456-45.438-5.158l-.82-.211c-18.89-5.324-35.903-13.613-42.053-17.955-4.732-3.343-13.342-15.948-10.658-20.132 2.684-4.176 12.149-10.597 14.237-21.035 2.088-10.438-15.934-26.333-23.864-31.026-35.798-21.185-44.75-3.579-44.75-3.579-22.373 34.308-16.737 56.193 19.789 90.57 19.386 18.245 48.101 31.245 77.711 39.097z\" style=\"fill:#c95328\" transform=\"translate(-17.206 -348.277) scale(1.71549)\"/><path d=\"M135.768 478.956c29.632 7.799 61.018 10.667 86.882 4.368 48.741-11.851 64.447-28.104 61.93-68.982 0 0 .912-19.728-40.676-18.982-9.215.167-32.732 5.079-36.074 15.193-3.338 10.114 1.719 20.368 1.996 25.324.272 4.956-13.443 11.676-19.21 12.246-7.491.736-26.382-.456-45.435-5.158l-.82-.21c-18.891-5.325-35.904-13.614-42.057-17.956-4.728-3.343-13.342-15.957-10.658-20.132 2.689-4.176 12.149-10.597 14.241-21.035 2.088-10.447-15.938-26.333-23.868-31.026-35.794-21.185-44.746-3.588-44.746-3.588-22.373 34.307-16.737 56.193 19.79 90.579 19.386 18.236 48.097 31.245 77.71 39.097z\" style=\"fill:#fff\" transform=\"translate(-17.206 -348.277) scale(1.71549)\"/></g><path style=\"opacity:1;vector-effect:none;fill:#fff;fill-opacity:1;stroke:none;stroke-width:.56869441;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1\" d=\"M485.124 226.94H459.78c-1.169 11.72-2.34 18.852-3.12 21.397-1.17 2.551-3.12 3.569-5.459 3.569-5.068 0-9.358-5.605-13.255-17.833-2.344-5.096-5.85-19.87-11.312-43.817C442.233 118.93 453.54 67.47 460.56 34.86h-35.092l-18.327 82.028c-10.138-32.607-19.886-55.536-29.634-68.273-11.309-13.243-26.516-19.87-46.012-20.38-30.022 0-52.642 14.27-67.066 42.29-12.476 23.438-18.716 54.004-18.716 91.71 0 38.208 6.627 69.293 19.885 93.744 14.427 27.006 34.702 40.253 60.829 40.253 29.633 0 55.37-18.343 77.983-56.045 10.918 37.702 24.565 56.045 41.331 56.045 22.23 0 35.095-22.929 39.384-69.292m-93.969-40.251c-12.089 49.42-29.637 73.88-52.253 73.88-37.43 0-55.757-32.61-55.757-98.333 0-67.255 16.38-100.884 49.13-100.884 14.427 0 28.075 16.815 40.164 49.421 7.406 21.402 13.647 46.877 18.714 75.915\"/></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_alpha_icon_filename)
echo "$(system_scalable_hicolor_icons_prefix)/$(linphone_desktop_icon_filename)"
echo "Making $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_desktop_icon_filename)"
echo "beta icon to distinguish it is a beta version and not a release version"
echo "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"512\" height=\"512\" xml:space=\"preserve\"><path fill=\"#C95328\" d=\"M512 433.229C512 476.562 476.557 512 433.228 512H78.768C35.452 512 0 476.562 0 433.229V78.763C0 35.43 35.452 0 78.768 0h354.46C476.557 0 512 35.43 512 78.763v354.466z\"/><linearGradient id=\"a\" gradientUnits=\"userSpaceOnUse\" x1=\"256.004\" y1=\"498.877\" x2=\"256.004\" y2=\"13.132\"><stop offset=\"0\" style=\"stop-color:#e6b043\"/><stop offset=\".5\" style=\"stop-color:#c95328\"/></linearGradient><path fill=\"url(#a)\" d=\"M78.768 498.877c-36.188 0-65.632-29.438-65.632-65.648V78.763c0-36.21 29.443-65.631 65.632-65.631h354.46c36.202 0 65.645 29.421 65.645 65.631v354.465c0 36.21-29.443 65.648-65.645 65.648H78.768z\"/><path d=\"M473.412 129.19c4.022 16.057 11.006 21.111 14.433 6.539 2.626-12.988-.907-31.173-15.294-50.564-28.484-41.915-103.78-66.186-162.935-44.793-31.137 11.984-24.661 13.922 7.499 7.175 58.118-10.362 116.214 15.009 141.418 51.351 7.501 10.271 12.299 20.659 14.879 30.292z\" style=\"fill:#c95328\" transform=\"scale(-1 1) rotate(-56.76 136.476 576.306)\"/><path d=\"M419.015 143.098c7.494 14.941 12.717 26.531 19.203 25.729 6.259-.803 15.077-12.937 11.313-29.547-2.509-10.809-8.09-22.524-17.543-33.749-28.203-35.815-93.65-54.292-150.259-31.286-29.453 11.077-49.386 32.979-50.211 36.716-1.109 4.036 18.227-9.882 45.146-18.015 35.711-11.303 76.217-6.516 105.15 11.224 18.366 11.001 30.457 25.282 37.201 38.928z\" style=\"fill:#c95328\" transform=\"scale(-1 1) rotate(-56.76 136.476 576.306)\"/><path d=\"M272.768 116.451c-23.938 6.501-41.564 24.912-39.126 28.578 2.162 3.725 15.671-.811 29.184-4.844 8.038-2.487 16.081-3.953 23.938-4.465 25.749-1.574 45.468 6.943 57.738 17.625 11.416 9.433 22.448 19.878 31.148 19.694 8.566-.117 15.136-11.611 7.022-24.39-8.806-13.192-24.526-26.198-47.588-32.772-19.007-5.462-41.061-5.518-62.316.574z\" style=\"fill:#c95328\" transform=\"scale(-1 1) rotate(-56.76 136.476 576.306)\"/><g><path d=\"M471.9 135.938c4.029 16.063 11.007 21.124 14.451 6.533 2.614-12.977-.917-31.161-15.322-50.563-28.482-41.924-103.761-66.172-162.917-44.792-31.146 11.995-24.653 13.946 7.502 7.184 58.08-10.377 116.211 14.988 141.407 51.347 7.508 10.277 12.302 20.639 14.879 30.291z\" style=\"fill:#fff\" transform=\"scale(-1 1) rotate(-56.76 136.476 576.306)\"/><path d=\"M417.504 149.867c7.505 14.928 12.724 26.518 19.188 25.708 6.278-.797 15.089-12.928 11.332-29.564-2.513-10.809-8.095-22.504-17.548-33.728C402.261 76.469 336.838 58 280.209 81.002c-29.433 11.073-49.345 32.962-50.192 36.706-1.089 4.03 18.224-9.864 45.125-17.983 35.73-11.315 76.235-6.557 105.167 11.199 18.359 11.009 30.453 25.299 37.195 38.943z\" style=\"fill:#fff\" transform=\"scale(-1 1) rotate(-56.76 136.476 576.306)\"/><path d=\"M271.267 123.201c-23.948 6.485-41.572 24.917-39.134 28.582 2.168 3.729 15.69-.8 29.175-4.826 8.052-2.511 16.09-3.969 23.948-4.463 25.726-1.586 45.473 6.911 57.743 17.604 11.416 9.432 22.457 19.879 31.142 19.694 8.571-.115 15.134-11.604 7.032-24.405-8.817-13.18-24.553-26.163-47.588-32.739-19.003-5.465-41.07-5.554-62.318.553z\" style=\"fill:#fff\" transform=\"scale(-1 1) rotate(-56.76 136.476 576.306)\"/></g><path fill=\"none\" d=\"M78.768 499.246c-36.188 0-65.632-29.439-65.632-65.649V79.132c0-36.211 29.443-65.632 65.632-65.632h354.46c36.202 0 65.645 29.421 65.645 65.632v354.465c0 36.21-29.443 65.649-65.645 65.649H78.768z\"/><g><path d=\"M137.141 473.474c29.627 7.798 61.013 10.667 86.881 4.377 48.737-11.859 64.443-28.113 61.93-68.991 0 0 .908-19.719-40.68-18.982-9.21.167-32.732 5.088-36.07 15.193-3.342 10.114 1.719 20.368 1.991 25.324.272 4.956-13.443 11.676-19.206 12.246-7.496.736-26.381-.456-45.438-5.158l-.82-.211c-18.89-5.324-35.903-13.613-42.053-17.955-4.732-3.343-13.342-15.948-10.658-20.132 2.684-4.176 12.149-10.597 14.237-21.035 2.088-10.438-15.934-26.333-23.864-31.026-35.798-21.185-44.75-3.579-44.75-3.579-22.373 34.308-16.737 56.193 19.789 90.57 19.386 18.245 48.101 31.245 77.711 39.097z\" style=\"fill:#c95328\" transform=\"translate(-17.206 -348.277) scale(1.71549)\"/><path d=\"M135.768 478.956c29.632 7.799 61.018 10.667 86.882 4.368 48.741-11.851 64.447-28.104 61.93-68.982 0 0 .912-19.728-40.676-18.982-9.215.167-32.732 5.079-36.074 15.193-3.338 10.114 1.719 20.368 1.996 25.324.272 4.956-13.443 11.676-19.21 12.246-7.491.736-26.382-.456-45.435-5.158l-.82-.21c-18.891-5.325-35.904-13.614-42.057-17.956-4.728-3.343-13.342-15.957-10.658-20.132 2.689-4.176 12.149-10.597 14.241-21.035 2.088-10.447-15.938-26.333-23.868-31.026-35.794-21.185-44.746-3.588-44.746-3.588-22.373 34.307-16.737 56.193 19.79 90.579 19.386 18.236 48.097 31.245 77.71 39.097z\" style=\"fill:#fff\" transform=\"translate(-17.206 -348.277) scale(1.71549)\"/></g><g aria-label=\"β\" style=\"font-style:normal;font-weight:400;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0;word-spacing:0;fill:#000;fill-opacity:1;stroke:none\"><path d=\"M76.637 168.895c-1.266 48.305-10.53 67.779-10.53 67.779s-23.274-4.046-20.392-102.484c.705-24.071-2.198-72.103-2.198-72.103-1.883-31.083 25.422-46.651 76.265-46.651 51.798 0 77.697 13.13 77.697 39.388 0 18.688-10.265 31.442-30.793 38.262 33.418 6.138 50.127 18.313 50.127 36.523 0 32.329-28.763 48.493-86.29 48.493-25.302 0-43.264-3.069-53.886-9.207zm0-24.554c13.247 11.8 31.627 17.7 55.14 17.7 34.372 0 51.559-10.709 51.559-32.125 0-19.233-27.69-28.1-83.068-26.6V85.926c43.324 0 64.986-10.913 64.986-32.738 0-14.937-13.964-22.405-41.892-22.405-31.15 0-46.725 10.64-46.725 31.92z\" style=\"font-size:325.33334351px;fill:#fff;fill-opacity:1;stroke-width:.85193974\" transform=\"matrix(1.21234 0 0 1.74668 197.76 -13.008)\"/></g></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_beta_icon_filename)
echo "--- Making $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_one) ---"
echo "--- Creating an extra icon $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_one) for change icon script ---"
echo "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" version=\"1\"><path style=\"opacity:.2\" d=\"M32 5a28.5 28.5 0 0 0-2.316.102c-6.923.492-12.484 3.055-17.489 8.05a27.747 27.747 0 0 0-7.687 14.512c-.093.486-.167.978-.235 1.473-.04.303-.086.605-.117.91a28.514 28.514 0 0 0-.129 1.98c-.005.168-.013.336-.015.504-.004.154-.012.313-.012.469 0 15.253 12.077 27.57 27.227 27.977.117.003.237.01.355.011.142.003.278.012.418.012.674 0 1.342-.036 2.004-.082.083-.006.163-.009.246-.016 10.003-.789 18.473-6.796 22.754-15.308l.004-.004c.277-.551.56-1.1.8-1.672 1.311-2.96 2.024-6.102 2.153-9.39.006-.107.007-.214.012-.321.008-.314.025-.625.023-.941 0-.09.004-.176.004-.266V9.2A4.19 4.19 0 0 0 55.8 5H32.21Z\"/><path style=\"fill:#f57f38\" d=\"M32 4a28.5 28.5 0 0 0-2.316.102c-6.923.492-12.484 3.055-17.489 8.05a27.747 27.747 0 0 0-7.687 14.512c-.093.486-.167.978-.235 1.473-.04.303-.086.605-.117.91a28.514 28.514 0 0 0-.129 1.98c-.005.168-.013.336-.015.504-.004.154-.012.313-.012.469 0 15.253 12.077 27.57 27.227 27.977.117.003.237.01.355.011.142.003.278.012.418.012.674 0 1.342-.036 2.004-.082.083-.006.163-.009.246-.016 10.003-.789 18.473-6.796 22.754-15.308l.004-.004c.277-.551.56-1.1.8-1.672 1.311-2.96 2.024-6.102 2.153-9.39.006-.107.007-.214.012-.321.008-.314.025-.625.023-.941 0-.09.004-.176.004-.266V8.2A4.19 4.19 0 0 0 55.8 4H32.21Z\"/><path style=\"opacity:.2\" d=\"M34.747 17.003c-.703 0-1.286.561-1.293 1.241-.004.683.58 1.258 1.287 1.261 3.055.023 5.566.989 7.591 2.892 2.001 1.886 3.045 4.499 3.071 7.909v.003c.007.678.591 1.238 1.296 1.238l.014-.003c.706-.006 1.292-.576 1.287-1.258v-.003c-.016-1.99-.34-3.818-.972-5.426a11.725 11.725 0 0 0-2.88-4.258c-2.506-2.356-5.706-3.573-9.39-3.599h-.012zm-13.12 2.94c-.492-.084-1.026.008-1.559.264h-.042l-.06.034c-.988.562-1.914 1.314-2.781 2.259l-.068.073v.069c-.6.748-.997 1.5-1.088 2.255-.03.128-.029.243-.029.367 0 .343.05.692.157 1.034l.028.096.06.034c.342 1.176 1.12 3.005 2.82 6.102 1.134 2.053 2.291 3.768 3.441 5.213a27.908 27.908 0 0 0 2.168 2.423c.012.012.03.039.073.082l.08.08h.006a.884.884 0 0 1 .05.054l.015.017.014.014a27.28 27.28 0 0 0 2.35 2.08 37.225 37.225 0 0 0 5.21 3.45c3.101 1.712 4.947 2.485 6.116 2.822l.043.05.07.026c.332.11.677.162 1.018.157.138.007.26-.002.378-.029.8-.093 1.593-.473 2.378-1.13l.008-.012.009-.005c.012-.012.005-.007.011-.015.007-.006.01-.013.017-.02.929-.847 1.678-1.768 2.242-2.755l.037-.063v-.06c.518-1.077.312-2.178-.529-2.88-.02-.017-.424-.355-.926-.764a45.054 45.054 0 0 0-1.531-1.21c-.777-.575-1.978-1.318-2.662-1.699h-.003c-1.315-.736-2.688-.308-3.293.475l-1.06 1.326c-.427.539-1.28.487-1.303.486-7.188-1.849-9.12-9.075-9.134-9.127-.001-.022-.053-.878.486-1.312l1.32-1.057c.786-.6 1.227-1.974.487-3.292-.386-.682-1.133-1.891-1.7-2.662h-.002a50.637 50.637 0 0 0-1.214-1.537c-.208-.257-.398-.491-.536-.659l-.166-.199c-.02-.023-.037-.04-.048-.054l-.014-.017a2.232 2.232 0 0 0-1.346-.787zm13.197 2.88c-.693-.048-1.316.47-1.367 1.14-.05.669.49 1.266 1.182 1.315 1.712.12 2.868.624 3.736 1.542v.003c.886.935 1.29 2.003 1.256 3.463v.005c-.015.672.548 1.241 1.244 1.256h.031c.686 0 1.258-.541 1.273-1.204.047-2.007-.607-3.797-1.923-5.185-1.326-1.394-3.2-2.175-5.434-2.334z\"/><path style=\"fill:#fff\" d=\"M34.747 16.003c-.703 0-1.286.561-1.293 1.241-.004.683.58 1.258 1.287 1.261 3.055.023 5.566.989 7.591 2.892 2.001 1.886 3.045 4.499 3.071 7.909v.003c.007.678.591 1.238 1.296 1.238l.014-.003c.706-.006 1.292-.576 1.287-1.258v-.003c-.016-1.99-.34-3.818-.972-5.426a11.725 11.725 0 0 0-2.88-4.258c-2.506-2.356-5.706-3.573-9.39-3.599h-.012zm-13.12 2.94c-.492-.084-1.026.008-1.559.264h-.042l-.06.034c-.988.562-1.914 1.314-2.781 2.259l-.068.073v.069c-.6.748-.997 1.5-1.088 2.255-.03.128-.029.243-.029.367 0 .343.05.692.157 1.034l.028.096.06.034c.342 1.176 1.12 3.005 2.82 6.102 1.134 2.053 2.291 3.768 3.441 5.213a27.908 27.908 0 0 0 2.168 2.423c.012.012.03.039.073.082l.08.08h.006a.884.884 0 0 1 .05.054l.015.017.014.014a27.28 27.28 0 0 0 2.35 2.08 37.225 37.225 0 0 0 5.21 3.45c3.101 1.712 4.947 2.485 6.116 2.822l.043.05.07.026c.332.11.677.162 1.018.157.138.007.26-.002.378-.029.8-.093 1.593-.473 2.378-1.13l.008-.012.009-.005c.012-.012.005-.007.011-.015.007-.006.01-.013.017-.02.929-.847 1.678-1.768 2.242-2.755l.037-.063v-.06c.518-1.077.312-2.178-.529-2.88-.02-.017-.424-.355-.926-.764a45.054 45.054 0 0 0-1.531-1.21c-.777-.575-1.978-1.318-2.662-1.699h-.003c-1.315-.736-2.688-.308-3.293.475l-1.06 1.326c-.427.539-1.28.487-1.303.486-7.188-1.849-9.12-9.075-9.134-9.127-.001-.022-.053-.878.486-1.312l1.32-1.057c.786-.6 1.227-1.974.487-3.292-.386-.682-1.133-1.891-1.7-2.662h-.002a50.637 50.637 0 0 0-1.214-1.537c-.208-.257-.398-.491-.536-.659l-.166-.199c-.02-.023-.037-.04-.048-.054l-.014-.017a2.232 2.232 0 0 0-1.346-.787zm13.197 2.88c-.693-.048-1.316.47-1.367 1.14-.05.669.49 1.266 1.182 1.315 1.712.12 2.868.624 3.736 1.542v.003c.886.935 1.29 2.003 1.256 3.463v.005c-.015.672.548 1.241 1.244 1.256h.031c.686 0 1.258-.541 1.273-1.204.047-2.007-.607-3.797-1.923-5.185-1.326-1.394-3.2-2.175-5.434-2.334z\"/><path style=\"opacity:.2;fill:#fff\" d=\"M32 4a28.5 28.5 0 0 0-2.316.102c-6.923.492-12.484 3.055-17.489 8.05a27.747 27.747 0 0 0-7.687 14.512c-.093.486-.167.978-.235 1.473-.04.303-.086.605-.117.91a28.514 28.514 0 0 0-.129 1.98c-.005.168-.013.336-.015.504-.004.154-.012.313-.012.469 0 .121.01.24.018.36l.01-.333c.022-.666.06-1.327.128-1.98.031-.305.076-.607.117-.91.068-.495.142-.987.235-1.473a27.747 27.747 0 0 1 7.687-14.512c5.005-4.995 10.566-7.558 17.489-8.05A28.5 28.5 0 0 1 32 5h23.8A4.19 4.19 0 0 1 60 9.2v-1A4.19 4.19 0 0 0 55.8 4H32z\"/></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_one)
echo "--- Making $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_two) ---"
echo "--- Creating an extra icon $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_two) for change icon script ---"
echo "<svg width=\"1000\" height=\"1000\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"><defs><radialGradient xlink:href=\"#a\" id=\"b\" cx=\"122.991\" cy=\"32.607\" fx=\"122.991\" fy=\"32.607\" r=\"163.8\" gradientTransform=\"matrix(-.01834 1.17214 -1.03732 -.01623 -248.565 166.597)\" gradientUnits=\"userSpaceOnUse\"/><linearGradient id=\"a\"><stop offset=\"0\" stop-color=\"#7f9195\"/><stop offset=\"1\" stop-color=\"#809296\" stop-opacity=\"0\"/></linearGradient></defs><path d=\"M253.71 64.867a500 500 0 01681.354 188.72 500 500 0 01-188.53 681.408 500 500 0 01-681.46-188.34A500 500 0 01253.222 65.144\" fill=\"#00252d\"/><path d=\"M-362.556 49.14a161.017 160.99 0 01219.42 60.763 161.017 160.99 0 01-60.714 219.399 161.017 160.99 0 01-219.453-60.641 161.017 160.99 0 0160.59-219.433\" fill=\"url(#b)\" transform=\"matrix(2.82297 0 0 2.82345 1299.14 -34.067)\"/><path d=\"M612.806 912.636c-7.23-11.437-11.36-61.598-16.32-198.272-4.627-127.425-7.032-157.195-12.704-157.195-5.097 0-6.228 13.198-7.554 88.124-1.374 77.641-2.827 97.139-7.977 107.029-3.913 7.515-6.019 8.366-9.271 3.749-5.105-7.246-6.4-22.062-8.381-95.81-1.315-48.969-2.65-75.277-3.912-77.067-3.847-5.461-5.208 6.373-6.047 52.572-.464 25.545-1.715 50.451-2.78 55.348-3.805 17.508-13.572 16.818-17.032-1.203-1.065-5.545-2.46-32.59-3.1-60.099-1.167-50.174-2.503-60.735-7.682-60.735-6.71 0-9.854 18.831-13.397 80.27C489.454 774.095 485.42 802.49 474.9 802.49c-6.336 0-9.743-7.88-27.027-62.519-16.605-52.489-29.583-73.638-45.19-73.638-13.921 0-13.902-.081-14.539 62.402-.376 36.922-1.177 55.352-2.486 57.207-3.563 5.052-4.705-6.276-8.176-81.104-4.813-103.772-8.684-132.618-16.095-119.942-1.788 3.058-2.517 17.956-3.178 64.932-.868 61.622-2.06 73.151-7.837 75.82-4.286 1.979-5.969-10.778-7.422-56.266-3.087-96.668-7.409-121.294-22.9-130.483-8.71-5.166-10.477-1.667-10.477 20.75 0 21.707-.884 26.102-5.249 26.102-4.036 0-5.908-6.34-8.037-27.213-1.762-17.262-4.774-24.443-9.234-22.014-3.224 1.757-3.562 23.039-.862 54.29 2.216 25.652.668 36.313-5.423 37.339-6.41 1.08-9.401-10.436-13.202-50.814-3.459-36.74-6.332-48.75-11.666-48.75-4.48 0-6.242 5.658-10.14 32.552-3.678 25.38-6.276 32.91-12.811 37.137-6.766 4.376-9.918-3.211-11.336-27.283-1.59-26.98-3.596-36.488-8.971-42.513-8.595-9.632-26.202-2.935-27.55 10.478-.394 3.928-1.677 5.11-5.546 5.11-4.288 0-5.59-1.586-8.801-10.718-4.378-12.451-9.381-19.05-14.454-19.063-1.974-.004-6.034-2.125-9.023-4.712-4.832-4.182-9.01-4.774-37.75-5.35-27.404-.548-32.315-1.19-32.315-4.22 0-3.012 5.126-3.759 32.716-4.763 25.879-.942 33.768-2.002 37.75-5.072 2.768-2.135 7.435-4.615 10.37-5.512 6.117-1.87 8.424-5.194 13.118-18.91 2.498-7.299 4.489-9.99 7.787-10.533 3.682-.606 4.957.802 7.55 8.336 2.686 7.807 4.166 9.344 10.669 11.082 16.254 4.342 21.318-4.262 24.33-41.342 1.17-14.42 3.063-27.815 4.204-29.768 5.751-9.837 15.413 2.928 18.478 24.411a7754.964 7754.964 0 003.622 25.067c2.753 18.76 9.309 24.046 13.966 11.26 1.436-3.94 4.152-22.964 6.037-42.276 4.002-41.002 6.636-51.192 12.954-50.125 6.12 1.035 7.43 10.376 5.37 38.328-2.568 34.857-2.277 51.555.93 53.301 4.46 2.43 7.471-4.752 9.233-22.014 2.13-20.873 4.001-27.212 8.037-27.212 4.365 0 5.249 4.394 5.249 26.102 0 22.417 1.767 25.916 10.477 20.75 15.461-9.171 19.869-34.03 22.948-129.434 1.504-46.577 3.137-59.272 7.374-57.315 5.726 2.644 6.964 14.313 7.893 74.399.965 62.347 2.404 74.962 7.696 67.45 4.188-5.946 7.207-35.239 10.65-103.35 3.94-77.957 5.034-93.938 6.738-98.38 3.083-8.04 4.27 6.173 4.797 57.47.536 52.222.687 54.315 4.148 57.757 1.975 1.964 6.97 3.571 11.097 3.571 15.779 0 27.353-19.93 46.975-80.885 15.124-46.983 18.99-55.406 24.978-54.425 9.772 1.602 13.738 26.7 19.603 124.043 5.445 90.39 7.618 106.53 14.599 108.438 5.561 1.52 6.966-8.802 8.205-60.3.663-27.535 2.061-54.58 3.108-60.099 3.293-17.358 12.618-18.695 16.918-2.426 1.252 4.735 2.39 26.69 2.904 55.975.577 32.932 1.504 49.466 2.93 52.232 4.412 8.568 5.748-4.72 6.77-67.354 1.291-79.178 3.585-103.062 10.245-106.69 5.762-3.14 9.596 4.722 12.594 25.821.944 6.645 2.303 45.842 3.02 87.106 1.301 74.983 2.426 88.125 7.54 88.125 5.671 0 8.072-29.319 12.679-154.814 5.412-147.438 9.084-191.36 16.83-201.312 2.859-3.671 3.228-3.538 5.83 2.1 5.59 12.11 6.44 48.127 3.75 158.722-2.75 113.012-2.399 135.76 2.096 135.76 4.94 0 5.786-12.112 6.821-97.652 1.096-90.475 2.26-104.957 8.573-106.683 3.863-1.056 8.909 7.327 11.338 18.838 4.738 22.449 5.657 41.915 6.73 142.626.62 58.293 1.75 107.908 2.51 110.256.758 2.348 2.23 3.876 3.27 3.397 4.494-2.073 6.345-15.702 8.559-63.006 2.426-51.843 4.689-67.881 9.77-69.27 9.035-2.47 11.194 10.713 12.799 78.166 1.524 64.06 3.174 74.756 11.329 73.402 9.04-1.5 12.097-16.802 15.614-78.165 2.86-49.903 5.968-59.637 13.498-42.276 5.97 13.765 8.408 30.776 10.151 70.857.94 21.614 2.064 41.71 2.497 44.658 1.024 6.977 4.858 6.84 16.075-.573 14.03-9.27 18.998-8.175 45.798 10.1l23.577 16.076 44.46 1.191c38.03 1.019 44.461 1.708 44.461 4.764s-6.431 3.745-44.46 4.763l-44.461 1.191-24 16.393c-22.251 15.199-24.596 16.293-32.182 15.018-4.5-.757-11.224-3.579-14.942-6.271-8.914-6.456-13.319-6.314-14.373.464-.458 2.947-1.561 21.972-2.452 42.276-.89 20.304-2.442 42.276-3.449 48.826-2.249 14.637-8.395 30.659-12.157 31.687-4 1.094-5.709-10.246-8.721-57.89-3.467-54.828-6.876-70.258-15.525-70.258-7.584 0-9.255 11.493-10.738 73.834-1.605 67.454-3.764 80.637-12.799 78.167-4.824-1.32-7.307-16.901-9.037-56.731-2.13-49.01-4.098-68.975-7.24-73.436-6.42-9.113-7.626 6.979-7.671 102.36-.042 87.334-1.581 124.198-6.17 147.757-2.798 14.359-8.833 24.884-12.975 22.628-5.326-2.901-6.468-18.867-7.613-106.42-1.115-85.323-1.982-97.653-6.865-97.653-4.664 0-5.198 29.466-2.376 131.19 3.24 116.793 2.022 158.083-4.904 166.243-1.7 2.003-2.893 1.634-4.88-1.509z\" fill=\"#007082\"/><path d=\"M557.433 860.628c-30.551-8.354-48.706-15.887-75.969-31.522-64.097-36.758-107.271-76.846-178.954-166.158-116-144.529-161.966-284.916-120.724-368.713 5.35-10.87 14.713-24.617 20.806-30.549l11.08-10.785 37.69 48.902c20.73 26.896 49.472 63.92 63.87 82.278l26.18 33.377-4.509 8.722c-6.245 12.079-4.046 36.3 5.069 55.815 12.797 27.399 83.283 121.688 121.569 162.623 9.076 9.705 23.088 21.871 31.138 27.037 12.725 8.167 16.854 9.346 31.637 9.03l17.002-.365 11.292 14.881c87.093 114.773 111.507 147.443 111.507 149.213 0 1.157-8.395 6.032-18.655 10.834-24.575 11.502-59.915 13.614-90.03 5.38zm112.678-33.622c-67.963-87.85-119.736-156.163-119.736-157.99 0-7.295 54.164-48.672 63.715-48.672 1.956 0 8.796 5.953 15.199 13.228 27.513 31.263 110.225 143.008 110.225 148.916 0 7.982-51.944 52.717-60.694 52.27-1.552-.08-5.471-3.568-8.709-7.752zm-381.935-499.2l-63.165-83.604 8.125-6.807c17.38-14.56 42.48-31.7 52.522-35.864l10.521-4.363 27.47 35.828c58.805 76.7 89.046 117.446 92.034 124.005 2.76 6.062 2.008 7.879-6.61 15.947-17.09 16.001-48.013 38.46-52.953 38.46-2.96 0-28.816-31.814-67.944-83.603zm9.544 620.059c-.96-1.553-3.258-2.804-5.107-2.78-2.02.025-1.672 1.135.872 2.78 5.423 3.505 6.4 3.505 4.235 0zm-9.88-3.933c0-.61-1.972-1.867-4.382-2.792-2.512-.964-3.645-.49-2.656 1.11 1.658 2.683 7.037 3.968 7.037 1.682zm-43.757-21.478c-.96-1.553-3.257-2.804-5.107-2.78-2.02.025-1.672 1.135.873 2.78 5.423 3.505 6.4 3.505 4.234 0zm246.48 60.187c2.039-.816 4.473-.716 5.411.223.938.938-.729 1.605-3.705 1.482-3.288-.135-3.957-.804-1.705-1.705z\" opacity=\".345\"/><path d=\"M589.627 838.158c-30.55-8.354-48.706-15.887-75.968-31.521-64.097-36.76-107.272-76.847-178.955-166.16-116-144.528-161.966-284.914-120.723-368.712 5.35-10.87 14.713-24.617 20.806-30.549l11.08-10.784 37.69 48.901c20.73 26.896 49.472 63.92 63.87 82.278l26.18 33.377-4.51 8.722c-6.245 12.079-4.045 36.3 5.07 55.815 12.796 27.399 83.282 121.689 121.568 162.623 9.077 9.705 23.089 21.871 31.138 27.038 12.726 8.167 16.855 9.345 31.638 9.028l17.002-.364 11.291 14.881c87.093 114.773 111.508 147.443 111.508 149.213 0 1.157-8.395 6.032-18.656 10.835-24.575 11.502-59.915 13.613-90.029 5.38zm112.679-33.622c-67.963-87.85-119.736-156.162-119.736-157.99 0-7.295 54.164-48.672 63.714-48.672 1.957 0 8.796 5.953 15.2 13.228 27.513 31.263 110.225 143.008 110.225 148.916 0 7.982-51.944 52.717-60.694 52.27-1.553-.079-5.472-3.568-8.709-7.752zm-381.936-499.2l-63.165-83.604 8.125-6.807c17.38-14.56 42.48-31.7 52.522-35.864l10.522-4.363 27.469 35.828c58.806 76.7 89.046 117.446 92.034 124.006 2.762 6.06 2.008 7.878-6.61 15.947-17.09 16-48.012 38.46-52.953 38.46-2.96 0-28.815-31.815-67.944-83.604z\" fill=\"#e0e0e0\"/><path d=\"M-362.399 49.05a161.017 160.99 0 01219.42 60.764 161.017 160.99 0 01-60.714 219.399 161.017 160.99 0 01-219.453-60.641 161.017 160.99 0 0160.59-219.433\" fill=\"none\" stroke=\"#85969a\" stroke-width=\"5.537\" transform=\"matrix(2.82297 0 0 2.82345 1299.14 -34.067)\"/></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_two)
echo "(not) Making $(system_scalable_hicolor_icons_prefix)/$(linphone_desktop_icon_filename) executable"
echo "--- Making extra icon for change icon script ---"
echo "<svg width=\"999\" height=\"1000\" viewBox=\"0 0 264.319 264.583\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"b\"><stop style=\"stop-color:#b3b3b3;stop-opacity:1\" offset=\"0\"/><stop style=\"stop-color:#b3b3b3;stop-opacity:0\" offset=\"1\"/></linearGradient><linearGradient id=\"a\"><stop style=\"stop-color:#f96505;stop-opacity:1\" offset=\"0\"/><stop style=\"stop-color:#f96505;stop-opacity:0\" offset=\"1\"/></linearGradient><linearGradient xlink:href=\"#a\" id=\"f\" x1=\"-72.672\" y1=\"90.417\" x2=\"799.289\" y2=\"946.915\" gradientUnits=\"userSpaceOnUse\" gradientTransform=\"translate(42.114 -21.073) scale(.1311)\"/><linearGradient xlink:href=\"#b\" id=\"c\" x1=\"160.971\" y1=\"100.705\" x2=\"51.612\" y2=\"-9.763\" gradientUnits=\"userSpaceOnUse\"/><filter style=\"color-interpolation-filters:sRGB\" id=\"d\" x=\"-.041\" y=\"-.077\" width=\"1.082\" height=\"1.155\"><feGaussianBlur stdDeviation=\"1.71\"/></filter><filter style=\"color-interpolation-filters:sRGB\" id=\"e\" x=\"-.034\" y=\"-.034\" width=\"1.068\" height=\"1.067\"><feGaussianBlur stdDeviation=\"1.278\"/></filter></defs><g transform=\"matrix(2.11985 0 0 2.11985 -90.43 33.788)\"><rect style=\"fill:#e5e3e2;fill-opacity:1;stroke:url(#c);stroke-width:1.10857;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" width=\"118.572\" height=\"118.572\" x=\"45.716\" y=\"-12.819\" ry=\"13.59\"/><path style=\"fill:#926c4f;fill-opacity:1;stroke-width:.411396;filter:url(#d)\" d=\"M117.71 44.782c-.458-2.78.098-9.091.098-23.264v-22.6c.012-1.38 1.65-2.906 3.1-3.246 1.948-.417 15.733-.371 19.115.064 5.776.743 10.536 3.972 12.72 8.628.94 2.003 1.322 4.574 1.294 6.92-.033 2.776-.382 5.719-1.727 8.147-1.346 2.433-2.177 3.864-5.995 5.797-2.78 1.408-6.482 1.733-13.331 1.749l-6.423.014-.199 8.968c-.105 4.735.17 7.97-.203 9.042-.355 1.018-.94 1.58-1.523 1.967-2.626 1.258-6.446.209-6.926-2.186zm22.355-25.664c3.796-1.271 5.527-4.154 5.236-8.721-.134-2.115-.402-2.95-1.341-4.181-1.985-2.602-4.045-3.252-10.87-3.426-3.248-.083-6.068.012-6.267.211-.277.277-.653 14.76-.423 16.276.076.499 12.12.358 13.665-.16zM66.178 47.2c-2.575-.672-7.53-3.35-9.537-5.154-3.435-3.089-4.136-5.67-2.05-7.555 2.098-1.896 3.84-1.483 7.315 1.734 4.11 3.806 9.783 5.033 14.295 3.092 3.71-1.596 5.25-5.819 3.293-9.028-1.204-1.976-1.355-2.074-8.918-5.772-7.419-3.627-9.323-4.816-11.908-7.437-3.094-3.137-4.238-8.402-2.754-12.666 1.87-5.366 6.325-8.672 12.879-9.554 4.375-.589 8.008-.013 11.828 1.875 5.684 2.808 7.825 6.642 5.227 9.354-1.628 1.699-3.252 1.553-5.882-.525-3.132-2.476-5.093-3.238-8.354-3.249-4.779-.015-7.692 2.256-7.696 5.999-.003 3.215.973 4.048 9.959 8.5 11.571 5.733 14.585 8.76 15.039 15.102.399 5.573-2.013 10.14-6.909 13.19-1.479.874-3.028 1.68-4.53 2.041-1.09.256-2.525.408-4.926.467-2.828.07-5.693-.237-6.371-.414zm32.97-.628c-.542-.427-1.087-1.15-1.087-1.763V21.425c0-16.775.135-23.902.468-24.632.647-1.42 2.265-2.152 3.87-2.084 2.05.169 3.892 1.067 3.89 2.547V44.644c-.013.718-.455 1.304-.954 1.736-.851.735-2.036 1.157-3.16 1.18-1.061.023-2.192-.33-3.026-.987z\" transform=\"translate(.35 52.632)\"/><path style=\"fill:#f96505;stroke-width:.411396\" d=\"M120.315 43.165c-.458-2.78.098-9.092.098-23.264v-22.6c.012-1.381 1.65-2.906 3.1-3.246 1.948-.418 15.733-.372 19.115.063 5.776.743 10.536 3.972 12.72 8.629.94 2.003 1.322 4.573 1.294 6.92-.033 2.776-.382 5.718-1.727 8.147-1.346 2.432-2.177 3.863-5.995 5.797-2.78 1.407-6.482 1.733-13.331 1.748l-6.423.015-.199 8.968c-.105 4.734.17 7.969-.203 9.041-.356 1.018-.94 1.58-1.523 1.968-2.626 1.258-6.446.209-6.926-2.186zM142.67 17.5c3.796-1.271 5.527-4.153 5.236-8.72-.134-2.116-.402-2.95-1.341-4.181-1.985-2.603-4.045-3.252-10.87-3.426-3.248-.083-6.068.012-6.267.21-.277.278-.653 14.76-.423 16.277.076.498 12.12.358 13.665-.16zM68.783 45.584c-2.575-.672-7.53-3.35-9.537-5.154-3.435-3.09-4.136-5.67-2.05-7.555 2.098-1.897 3.84-1.484 7.315 1.734 4.11 3.805 9.783 5.032 14.295 3.091 3.71-1.596 5.25-5.818 3.293-9.028-1.204-1.975-1.355-2.073-8.918-5.771-7.419-3.627-9.323-4.817-11.908-7.437-3.094-3.137-4.238-8.403-2.754-12.666 1.87-5.367 6.325-8.673 12.879-9.555 4.375-.588 8.008-.012 11.828 1.875 5.684 2.809 7.825 6.642 5.227 9.355-1.628 1.698-3.252 1.553-5.882-.526C79.439 1.472 77.478.709 74.217.699c-4.779-.016-7.692 2.255-7.696 5.998-.003 3.216.973 4.049 9.959 8.5 11.571 5.734 14.585 8.76 15.039 15.102.399 5.574-2.013 10.14-6.909 13.19-1.479.875-3.028 1.68-4.53 2.042-1.09.256-2.525.407-4.926.466-2.828.07-5.693-.236-6.371-.413zm32.97-.628c-.542-.427-1.087-1.15-1.087-1.763V19.808c0-16.776.135-23.902.468-24.633.647-1.419 2.265-2.151 3.87-2.084 2.05.17 3.892 1.068 3.89 2.548v47.387c-.013.718-.455 1.304-.954 1.736-.851.736-2.036 1.158-3.16 1.181-1.061.023-2.192-.331-3.026-.987z\" transform=\"translate(.35 52.632)\"/><g style=\"filter:url(#e)\"><path style=\"fill:#767676;fill-opacity:1;stroke-width:.264583\" d=\"M148.296 88.143c-4.625-.986-8.024-2.22-13.494-4.898-9.551-4.676-16.957-9.95-24.842-17.689-12.098-11.874-20.957-26.24-24.175-39.2-.755-4.248-1.324-9.231-.028-12.859 1.015-2.81 2.135-4.278 7.205-9.435 4.01-4.078 4.86-4.813 6.43-5.556 1.572-.745 2.086-.857 3.937-.857 1.92 0 2.322.096 4.1.975 1.793.886 2.593 1.6 8.744 7.806 5.94 5.992 6.882 7.056 7.67 8.67.78 1.599.898 2.1.895 3.836-.003 1.701-.131 2.27-.872 3.845-.733 1.561-1.481 2.466-4.815 5.825l-3.947 3.976L116.45 35c4.453 8.003 14.468 17.918 22.535 22.311l2.066 1.125 3.887-3.818c2.138-2.1 4.304-4.068 4.813-4.374 1.534-.923 3.882-1.48 5.588-1.324 3.131.284 3.933.875 11.662 8.605 6.376 6.377 7.148 7.244 7.937 8.916.765 1.621.874 2.118.871 3.981-.006 3.458-.787 4.74-6.317 10.36-5.043 5.124-6.44 6.188-9.54 7.267-1.908.665-2.477.74-5.438.729-2.424-.01-4.086-.18-6.218-.635zm8.474-4.925c2.75-.508 3.829-1.274 8.42-5.971 2.35-2.404 4.476-4.748 4.725-5.207.555-1.027.589-2.04.107-3.16-.314-.728-12.27-12.922-13.789-14.063-.648-.488-2.427-.517-3.262-.053-.34.188-2.439 2.141-4.666 4.34-2.226 2.2-4.449 4.244-4.939 4.543-1.434.875-2.804.72-5.46-.618-10.012-5.04-21.877-16.736-26.92-26.535-1.456-2.83-1.755-3.846-1.536-5.214.147-.921.707-1.593 4.53-5.434 2.399-2.411 4.582-4.741 4.852-5.178.559-.905.626-2.37.148-3.23-.179-.322-3.253-3.557-6.832-7.189-9.09-9.224-8.427-9.13-15.35-2.193-2.615 2.62-4.896 5.14-5.19 5.733-.921 1.865-1.206 3.701-1.042 6.72.676 12.455 12.644 32.242 27.038 44.7 6.718 5.816 12.736 9.775 20.53 13.507 4.58 2.193 7.492 3.246 10.987 3.972 4.058.843 5.44.939 7.649.53z\" transform=\"rotate(134.898 120.432 29.247)\"/></g><g><path style=\"fill:#b7b7b7;stroke-width:.264583\" d=\"M111.077 90.78c-4.625-.986-8.025-2.22-13.494-4.897-9.551-4.677-16.957-9.95-24.842-17.69-12.098-11.874-20.957-26.24-24.175-39.2-.755-4.248-1.324-9.231-.028-12.858 1.015-2.812 2.135-4.278 7.205-9.436 4.01-4.078 4.86-4.812 6.43-5.556C63.744.398 64.258.287 66.11.287c1.92 0 2.322.095 4.1.975 1.793.885 2.593 1.6 8.744 7.805 5.94 5.992 6.882 7.056 7.67 8.67.78 1.599.898 2.1.895 3.836-.003 1.702-.132 2.27-.872 3.845-.733 1.561-1.482 2.466-4.815 5.825l-3.947 3.976 1.346 2.418c4.453 8.003 14.468 17.918 22.535 22.311l2.066 1.125 3.887-3.817c2.138-2.1 4.304-4.069 4.813-4.375 1.534-.923 3.882-1.479 5.588-1.324 3.131.284 3.932.875 11.662 8.605 6.376 6.378 7.148 7.244 7.937 8.916.765 1.621.874 2.118.871 3.982-.006 3.457-.787 4.738-6.317 10.358-5.043 5.126-6.44 6.19-9.54 7.268-1.908.665-2.477.741-5.438.729-2.424-.01-4.086-.18-6.218-.635zm8.473-4.924c2.75-.509 3.83-1.274 8.421-5.972 2.35-2.404 4.476-4.747 4.724-5.207.555-1.027.59-2.04.108-3.16-.314-.728-12.27-12.922-13.789-14.063-.649-.487-2.427-.516-3.262-.053-.34.188-2.44 2.142-4.666 4.34-2.226 2.2-4.449 4.244-4.939 4.543-1.434.875-2.804.72-5.46-.618-10.013-5.04-21.877-16.736-26.92-26.535-1.456-2.83-1.755-3.846-1.537-5.214.148-.92.708-1.593 4.53-5.434 2.4-2.411 4.583-4.741 4.853-5.178.559-.905.626-2.37.148-3.23-.179-.322-3.253-3.557-6.832-7.188-9.09-9.225-8.427-9.13-15.35-2.194-2.615 2.62-4.896 5.14-5.19 5.733-.921 1.865-1.206 3.701-1.043 6.72.677 12.456 12.645 32.242 27.04 44.701 6.717 5.815 12.735 9.774 20.529 13.506 4.58 2.193 7.492 3.246 10.987 3.972 4.058.843 5.44.939 7.648.53z\" transform=\"rotate(134.898 104.322 36.735)\"/><path style=\"fill:url(#f);fill-opacity:1;stroke-width:.185406\" d=\"M116.862 87.458c-3.685-.372-7.609-1.48-11.776-3.336-7.023-3.128-13.963-6.094-19.734-10.564-14.341-11.109-27.083-27.7-31.865-42.365-1.213-3.72-1.911-6.68-2.032-9.944-.114-3.077.109-4.542.937-6.166.961-1.884 11.155-11.985 12.91-12.86 2.115-1.053 2.78-.67 8.308 4.782 2.384 2.351 5.529 5.543 6.99 7.094 2.92 3.1 3.558 5.021 3.137 6.592-.267 1-.366 1.116-5.31 6.243-2.167 2.248-4.158 4.409-4.424 4.8-.97 1.429-1.01 1.918.953 5.548 5.706 10.555 18.418 22.85 28.668 27.728 1.483.706.383.479 1.753.482 1.91.005 1.95-.022 6.506-4.412 5.555-5.353 5.684-5.462 6.64-5.605 1.596-.24 3.354.25 5.695 2.456 2.369 2.232 11.002 11.093 12.037 12.355.748.912.962 2.015.601 3.107-.27.817-1.88 2.693-5.466 6.369-2.711 2.778-6.828 6.174-8.052 6.799-1.495.762-4.158 1.131-6.476.897z\" transform=\"rotate(134.898 104.322 36.735)\"/></g></g></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/apps/$(linphone_extra_icon_name_three).svg
echo "--- Making extra icon for change icon script ---"
echo "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"25.6\" height=\"25.6\"><defs><linearGradient id=\"a\"><stop style=\"stop-color:#79f36e;stop-opacity:.99607843\" offset=\"0\"/><stop style=\"stop-color:#22e01c;stop-opacity:1\" offset=\"1\"/></linearGradient><linearGradient xlink:href=\"#a\" id=\"b\" gradientUnits=\"userSpaceOnUse\" x1=\"13.017\" y1=\"0\" x2=\"12.475\" y2=\"25.546\"/></defs><path style=\"fill:url(#b);stroke-width:1;font-variant-east_asian:normal;opacity:1;vector-effect:none;fill-opacity:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1\" d=\"M9.643 25.196c-2.272-.595-4.127-1.672-5.845-3.392-5.037-5.044-5.044-12.763-.016-17.803C5.413 2.365 6.987 1.423 9.5.579c3.982-1.337 8.913.036 12.328 3.432 2.578 2.566 3.925 6.01 3.709 9.489-.205 3.296-1.41 5.975-3.735 8.304-3.238 3.243-7.835 4.525-12.159 3.392z\"/><path style=\"fill:#174f14;stroke-width:.2\" d=\"M13.59 19.268c-1.757-.88-3.884-2.903-5.221-4.968C7.164 12.439 6.8 11.437 6.8 9.976c0-1.368.393-2.384 1.152-2.981.849-.668 1.313-.51 2.531.855 1.306 1.464 1.403 2 .517 2.85-.33.316-.6.718-.6.892 0 .398 1.235 2.302 2.034 3.136.332.346.906.792 1.278.992.668.36.683.359 1.308-.103 1.194-.883 1.91-.513 3.501 1.805.423.617.462.796.267 1.225-.342.75-1.563 1.353-2.738 1.353-.747 0-1.363-.183-2.46-.732Z\"/></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/apps/$(linphone_extra_icon_name_four).svg
echo "--- Making extra icon for change icon script ---"
echo "<svg width=\"999\" height=\"1000\" viewBox=\"0 0 264.319 264.583\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"b\"><stop style=\"stop-color:#b3b3b3;stop-opacity:1\" offset=\"0\"/><stop style=\"stop-color:#b3b3b3;stop-opacity:0\" offset=\"1\"/></linearGradient><linearGradient id=\"a\"><stop style=\"stop-color:#f96505;stop-opacity:1\" offset=\"0\"/><stop style=\"stop-color:#f96505;stop-opacity:0\" offset=\"1\"/></linearGradient><linearGradient xlink:href=\"#a\" id=\"d\" x1=\"-72.672\" y1=\"90.417\" x2=\"799.289\" y2=\"946.915\" gradientUnits=\"userSpaceOnUse\" gradientTransform=\"matrix(.27792 0 0 .27792 -1.154 -10.884)\"/><linearGradient xlink:href=\"#b\" id=\"c\" x1=\"160.971\" y1=\"100.705\" x2=\"51.612\" y2=\"-9.763\" gradientUnits=\"userSpaceOnUse\" gradientTransform=\"matrix(2.11985 0 0 2.11985 -90.43 33.788)\"/></defs><rect style=\"fill:#e5e3e2;fill-opacity:1;stroke:url(#c);stroke-width:2.35;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" width=\"251.354\" height=\"251.354\" x=\"6.482\" y=\"6.615\" ry=\"58.194\"/><path style=\"fill:#f96505;stroke-width:.560875\" d=\"M191.569 95.947c-.624-3.79.133-12.394.133-31.716V33.42c.017-1.884 2.25-3.963 4.228-4.426 2.654-.57 21.449-.507 26.06.087 7.873 1.013 14.363 5.415 17.342 11.763 1.28 2.73 1.802 6.235 1.763 9.434-.045 3.785-.52 7.797-2.354 11.108-1.835 3.316-2.968 5.267-8.173 7.903-3.79 1.919-8.838 2.362-18.176 2.383l-8.756.02-.271 12.227c-.143 6.454.232 10.865-.278 12.327-.484 1.388-1.281 2.154-2.076 2.682-3.58 1.715-8.788.285-9.442-2.98zm30.477-34.989c5.176-1.733 7.536-5.663 7.14-11.89-.184-2.883-.55-4.021-1.83-5.7-2.706-3.547-5.514-4.432-14.82-4.67-4.427-.113-8.272.017-8.543.288-.378.377-.89 20.121-.576 22.19.103.68 16.522.488 18.63-.218zM121.312 99.245c-3.51-.915-10.265-4.566-13.001-7.026-4.684-4.211-5.64-7.731-2.796-10.3 2.86-2.586 5.236-2.023 9.974 2.364 5.604 5.188 13.338 6.86 19.49 4.214 5.056-2.175 7.156-7.932 4.489-12.308-1.642-2.693-1.849-2.827-12.159-7.868-10.114-4.945-12.71-6.567-16.235-10.14-4.217-4.276-5.778-11.455-3.754-17.267 2.548-7.317 8.623-11.824 17.558-13.026 5.964-.803 10.918-.018 16.126 2.556 7.749 3.828 10.669 9.055 7.125 12.753-2.218 2.316-4.433 2.118-8.019-.717-4.27-3.374-6.942-4.414-11.388-4.428-6.516-.021-10.488 3.075-10.492 8.178-.004 4.384 1.326 5.52 13.576 11.589 15.776 7.816 19.885 11.943 20.504 20.589.543 7.598-2.744 13.823-9.42 17.982-2.015 1.192-4.127 2.291-6.176 2.783-1.485.35-3.441.556-6.715.637-3.856.095-7.761-.323-8.687-.565zm44.951-.856c-.74-.582-1.483-1.567-1.483-2.403V64.104c0-22.87.185-32.587.639-33.583.881-1.934 3.087-2.933 5.277-2.84 2.795.23 5.305 1.455 5.302 3.472V95.76c-.017.979-.62 1.778-1.301 2.367-1.16 1.002-2.775 1.578-4.308 1.61-1.446.03-2.989-.452-4.126-1.347z\"/><path style=\"fill:#b7b7b7;stroke-width:.560875\" d=\"M145.037 226.229c-9.804-2.09-17.01-4.706-28.605-10.383-20.248-9.913-35.947-21.092-52.662-37.499-25.645-25.171-44.425-55.624-51.246-83.096-1.601-9.008-2.808-19.57-.06-27.26 2.151-5.96 4.526-9.069 15.274-20.001 8.5-8.646 10.301-10.203 13.629-11.778 3.334-1.58 4.422-1.816 8.346-1.816 4.07 0 4.923.202 8.694 2.066 3.798 1.878 5.495 3.392 18.535 16.546C89.533 65.71 91.529 67.966 93.2 71.387c1.655 3.39 1.903 4.451 1.897 8.132-.005 3.608-.278 4.813-1.847 8.152-1.556 3.309-3.141 5.227-10.208 12.347l-8.366 8.43 2.852 5.125c9.44 16.965 30.67 37.984 47.77 47.296l4.38 2.385 8.24-8.093c4.532-4.45 9.124-8.624 10.203-9.273 3.252-1.956 8.229-3.135 11.846-2.807 6.637.602 8.336 1.855 24.72 18.242 13.518 13.519 15.154 15.356 16.827 18.9 1.622 3.437 1.853 4.49 1.846 8.44-.012 7.33-1.668 10.046-13.391 21.96-10.69 10.864-13.65 13.119-20.222 15.406-4.046 1.409-5.253 1.57-11.53 1.544-5.137-.021-8.66-.38-13.18-1.344zm17.962-10.44c5.829-1.078 8.118-2.7 17.85-12.659 4.982-5.096 9.489-10.064 10.016-11.039 1.176-2.176 1.25-4.325.228-6.697-.665-1.544-26.01-27.393-29.23-29.812-1.376-1.033-5.147-1.095-6.917-.113-.719.399-5.17 4.54-9.89 9.202-4.719 4.663-9.43 8.996-10.47 9.63-3.04 1.853-5.944 1.525-11.575-1.31-21.224-10.686-46.376-35.479-57.064-56.25-3.088-6-3.723-8.154-3.259-11.055.312-1.951 1.5-3.376 9.603-11.519 5.086-5.11 9.714-10.05 10.286-10.975 1.186-1.92 1.328-5.025.315-6.849-.38-.682-6.897-7.539-14.483-15.237-19.27-19.555-17.864-19.354-32.54-4.65-5.543 5.553-10.38 10.896-11 12.153-1.955 3.954-2.56 7.846-2.212 14.244 1.434 26.405 26.804 68.349 57.318 94.76 14.241 12.328 26.998 20.72 43.52 28.63 9.708 4.65 15.883 6.882 23.291 8.42 8.602 1.788 11.533 1.991 16.213 1.126z\" transform=\"rotate(-9.22 272.26 25.296)\"/><path style=\"fill:url(#d);fill-opacity:1;stroke-width:.393032\" d=\"M157.3 219.186c-7.812-.79-16.129-3.138-24.964-7.073-14.886-6.63-29.598-12.917-41.832-22.393-30.402-23.549-57.412-58.721-67.548-89.807-2.572-7.886-4.052-14.163-4.309-21.08-.241-6.523.23-9.63 1.987-13.072 2.037-3.993 23.648-25.406 27.367-27.26 4.483-2.233 5.894-1.42 17.612 10.137 5.053 4.984 11.72 11.75 14.816 15.037 6.19 6.573 7.543 10.645 6.652 13.976-.567 2.12-.776 2.366-11.255 13.234-4.595 4.765-8.816 9.344-9.38 10.175-2.055 3.028-2.142 4.064 2.02 11.76 12.096 22.374 39.044 48.438 60.772 58.78 3.143 1.496.811 1.014 3.717 1.021 4.05.01 4.134-.046 13.791-9.353 11.776-11.348 12.048-11.578 14.075-11.882 3.383-.507 7.11.53 12.073 5.207 5.02 4.73 23.323 23.516 25.517 26.19 1.586 1.933 2.038 4.272 1.274 6.588-.572 1.732-3.986 5.709-11.588 13.5-5.747 5.889-14.474 13.088-17.069 14.412-3.168 1.617-8.815 2.399-13.728 1.903z\" transform=\"rotate(-9.22 272.26 25.296)\"/></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/apps/$(linphone_extra_icon_name_five).svg
echo "--- Making extra icon for change icon script ---"
echo "<svg width=\"481.882\" height=\"481.882\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"><defs><linearGradient id=\"a\"><stop style=\"stop-color:#02c1ce;stop-opacity:1\" offset=\"0\"/><stop style=\"stop-color:#007bb1;stop-opacity:1\" offset=\"1\"/></linearGradient><linearGradient xlink:href=\"#a\" id=\"b\" x1=\"947.485\" y1=\"582.931\" x2=\"943.259\" y2=\"949.386\" gradientUnits=\"userSpaceOnUse\" gradientTransform=\"translate(-567.36 -83.08) scale(1.0201)\"/><filter style=\"color-interpolation-filters:sRGB\" id=\"c\" x=\"-.032\" y=\"-.032\" width=\"1.063\" height=\"1.063\"><feGaussianBlur stdDeviation=\"4.382\"/></filter><filter style=\"color-interpolation-filters:sRGB\" id=\"d\" x=\"-.055\" y=\"-.054\" width=\"1.111\" height=\"1.109\"><feGaussianBlur stdDeviation=\"5.708\"/></filter></defs><path style=\"fill:url(#b);fill-opacity:1;stroke:none;stroke-width:4.25603;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;stop-color:#000\" d=\"M212.53 886.092c-2.314-.287-3.156-.938-3.693-2.853-.902-3.217-.913-370.993-.01-374.204.376-1.34 1.414-2.788 2.307-3.217.893-.43 85.493-.914 188-1.077l186.375-.296 2.192 2.06 2.19 2.058v375.322l-2.051 1.438c-1.842 1.29-20.964 1.422-187.182 1.289-101.822-.081-186.48-.315-188.128-.52z\" transform=\"matrix(1.09242 0 0 1.09242 -194.173 -517.876)\"/><path style=\"mix-blend-mode:normal;fill:#fff;fill-opacity:1;stroke:#000;stroke-width:4.61;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#c);stop-color:#000\" d=\"m195.841 880.711-.247-185.077c-.226-169.958.09-189.574.09-189.574.255-10.059 3.573-13.811 14.047-13.993l187.826-.056c142.25-.042 188.244-.218 188.244-.218 10.184.143 14.928 6.511 14.927 14.442 0 0 .108 46.773.092 189.051-.02 183.68.278 183.175.278 183.175-.335 11.652-5.66 18.735-17.906 18.976l-184.625-.034c-179.734-.032-188.152.049-188.152.049-9.958-.017-14.434-5.755-14.574-16.74zm388.134-.518 2.385-1.875V510.926l-2.222-2.221-2.22-2.222H398.155c-182.555 0-183.774.012-185.572 1.81-1.798 1.798-1.81 3.017-1.81 185.983s.012 184.185 1.81 185.983c1.798 1.798 3.017 1.81 185.408 1.81h183.599z\" transform=\"matrix(1.09242 0 0 1.09242 -194.173 -517.876)\"/><path style=\"fill:#fff;fill-opacity:1;stroke:none;stroke-width:4.61;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;stop-color:#000\" d=\"m195.841 880.711-.247-185.077c-.226-169.958.13-188.846.13-188.846.044-11.287 10.72-14.742 17.313-14.768l184.52-.009c63.212-.151 125.28.233 188.12.392 11.124.026 15.068 3.615 15 13.808-.195 62.036.147 136.351.143 189.075-.015 139.409-.07 183.783-.07 183.783 0 11.82-7.204 17.75-17.558 18.368l-184.625-.034c-179.734-.032-187.198-.076-187.198-.076-11.691.258-15.331-8.15-15.528-16.616zm390.519-2.393V510.926c-.121-3.114-.933-4.364-4.443-4.443H398.156c-182.555 0-183.774.012-185.572 1.81-1.798 1.798-1.81 3.017-1.81 185.983s.012 184.185 1.81 185.983c1.798 1.798 3.017 1.81 185.409 1.81H581.59c4.51-.015 4.715-1.916 4.769-3.751z\" transform=\"matrix(1.09242 0 0 1.09242 -194.173 -517.876)\"/><g transform=\"matrix(1.09242 0 0 1.09242 -600.37 -48.77)\" style=\"fill:none;stroke:#000;stroke-opacity:1;filter:url(#d)\"><path style=\"fill:none;fill-opacity:1;stroke:#000;stroke-width:4.17217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;stop-color:#000\" d=\"M676.054 402.388c-13.968-5.067-29.395-15.067-36.86-23.895-13.253-15.671-16.742-27.43-15.767-53.136.791-20.857 4.41-34.9 14.105-54.754 15.364-31.458 45.984-66.578 90.109-103.35 34.414-28.68 65.45-45.845 92.827-51.34 10.45-2.098 25.546-2.759 33.26-1.456 20.71 3.497 42.888 25.386 54.458 53.746l3.376 8.277-7.34 5.404c-52.855 38.905-69.963 51.16-71.422 51.16-.956 0-4.683-2.952-8.282-6.561-7.937-7.957-13.283-18.158-18.144-34.617-1.764-5.974-3.382-11.352-3.594-11.952-.553-1.559-6.127.491-18.926 6.96-32.035 16.192-55.945 38.303-74.996 69.353-7.755 12.639-20.457 38.79-19.37 39.877.247.247 4.184 1.258 8.75 2.248 10.295 2.232 15.028 4.232 22.315 9.432 6.035 4.306 16.323 15.738 17.158 19.066.387 1.543-4.217 8.403-20.968 31.24-25.889 35.293-34.061 45.941-35.258 45.94-.498 0-2.942-.74-5.43-1.642zM801.4 354.77v-49.324h12.671v98.648H801.4zM842.127 354.77v-49.324l12.896.03c16.143.039 30.32 1.284 34.5 3.03 4.438 1.855 11.198 8.861 13.467 13.958 1.468 3.297 1.89 6.077 1.883 12.396-.011 10.302-2.238 15.968-8.482 21.582-5.947 5.346-11.22 6.85-28.245 8.05l-14.254 1.005v38.598h-11.765zm40.423-2.992c4.719-2.434 7.225-5.901 8.614-11.917 1.317-5.708.049-13.104-2.976-17.352-3.53-4.959-7.777-6.16-21.852-6.183l-12.444-.02v38.244l12.444-.414c10.432-.347 13.054-.728 16.214-2.358z\"/></g><g style=\"fill:#fff\"><path style=\"fill:#fff;fill-opacity:1;stroke:none;stroke-width:4.17217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;stop-color:#000\" d=\"M676.054 402.388c-13.968-5.067-29.395-15.067-36.86-23.895-13.253-15.671-16.742-27.43-15.767-53.136.791-20.857 4.41-34.9 14.105-54.754 15.364-31.458 45.984-66.578 90.109-103.35 34.414-28.68 65.45-45.845 92.827-51.34 10.45-2.098 25.546-2.759 33.26-1.456 20.71 3.497 42.888 25.386 54.458 53.746l3.376 8.277-7.34 5.404c-52.855 38.905-69.963 51.16-71.422 51.16-.956 0-4.683-2.952-8.282-6.561-7.937-7.957-13.283-18.158-18.144-34.617-1.764-5.974-3.382-11.352-3.594-11.952-.553-1.559-6.127.491-18.926 6.96-32.035 16.192-55.945 38.303-74.996 69.353-7.755 12.639-20.457 38.79-19.37 39.877.247.247 4.184 1.258 8.75 2.248 10.295 2.232 15.028 4.232 22.315 9.432 6.035 4.306 16.323 15.738 17.158 19.066.387 1.543-4.217 8.403-20.968 31.24-25.889 35.293-34.061 45.941-35.258 45.94-.498 0-2.942-.74-5.43-1.642zM801.4 354.77v-49.324h12.671v98.648H801.4zM842.127 354.77v-49.324l12.896.03c16.143.039 30.32 1.284 34.5 3.03 4.438 1.855 11.198 8.861 13.467 13.958 1.468 3.297 1.89 6.077 1.883 12.396-.011 10.302-2.238 15.968-8.482 21.582-5.947 5.346-11.22 6.85-28.245 8.05l-14.254 1.005v38.598h-11.765zm40.423-2.992c4.719-2.434 7.225-5.901 8.614-11.917 1.317-5.708.049-13.104-2.976-17.352-3.53-4.959-7.777-6.16-21.852-6.183l-12.444-.02v38.244l12.444-.414c10.432-.347 13.054-.728 16.214-2.358z\" transform=\"matrix(1.09242 0 0 1.09242 -600.37 -48.77)\"/></g></svg>" > $(buildroot)$(linphone_desktop_install_prefix)/share/icons/hicolor/scalable/apps/$(linphone_extra_icon_filename_six)
echo
echo "Copy invisible icon:"
echo "--------------------"
echo "Copying: $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_invisible_icon_filename)"
echo "to: $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_invisible_icon_filename)"
cp -v $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_invisible_icon_filename) $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_invisible_icon_filename)
echo
echo "Copy web icon:"
echo "--------------"
echo "Copying: $(buildroot)$(linphone_desktop_install_prefix)/$(web_hicolor_icons_reldir)/$(linphone_web_icon_filename)"
echo "to: $(buildroot)$(web_scalable_icondir)/$(linphone_desktop_web_icon_filename)"
cp $(buildroot)$(linphone_desktop_install_prefix)/$(web_hicolor_icons_reldir)/$(linphone_web_icon_filename) $(buildroot)$(system_web_icondir)/$(linphone_desktop_web_icon_filename)
echo
echo "Copy standard icon:"
echo "--------------"
echo "Copying: $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_one)"
echo "to: $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename)"
cp $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_extra_icon_filename_one) $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename)
echo
if [ "$$RELEASE" = "$$YES" ]; then \
echo "Release: copy standard icon:"; \
echo "----------------------------"; \
echo "Copying: $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_standard_icon_filename)"; \
echo "to: $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename)"; \
cp $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_standard_icon_filename) $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename); \
fi
echo "Alpha or beta versions: make sure to select alpha or beta icon"; \
if [ ! "$$RELEASE" = "$$YES" ] && [ "$$linphone_desktop_alphabeta" = "$$ALPHA" ]; then \
echo "Release: copy alpha icon:"; \
echo "-------------------------"; \
echo "Copying: $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_alpha_icon_filename)"; \
echo "to: $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename)"; \
cp $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_alpha_icon_filename) $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename); \
fi
if [ ! "$$RELEASE" = "$$YES" ] && [ "$$linphone_desktop_alphabeta" = "$$BETA" ]; then \
echo "Release: copy beta icon:"; \
echo "------------------------"; \
echo "Copying: $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_beta_icon_filename)"; \
echo "to: $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename)"; \
cp $(buildroot)$(linphone_desktop_install_prefix)/$(scalable_hicolor_icons_reldir)/$(linphone_beta_icon_filename) $(buildroot)$(system_scalable_icondir)/$(linphone_desktop_icon_filename); \
fi
echo
echo "remove echo before to run: chmod +x $(system_scalable_hicolor_icons_prefix)/$(linphone_desktop_icon_filename)"
echo
echo "Making $(menuFullFilePathOn) ..."
echo "--------------------------------"
echo "[Desktop Entry]" > $(menuFullFilePathOne)
echo "Encoding=UTF-8" >> $(menuFullFilePathOne)
echo "Name=$(TITLE)" >> $(menuFullFilePathOne)
echo "Name[fr]=$(TITLE)" >> $(menuFullFilePathOne)
echo "Name[sv]=$(TITLE)" >> $(menuFullFilePathOne)
echo "Name[cs]=$(TITLE)" >> $(menuFullFilePathOne)
echo "GenericName=SIP Phone" >> $(menuFullFilePathOne)
echo "Comment=A libre SIP client" >> $(menuFullFilePathOne)
echo "Comment[sv]=En fri SIP-telefon-klient" >> $(menuFullFilePathOne)
echo "Comment[fr]=Un libre SIP-client" >> $(menuFullFilePathOne)
echo "Comment[cs]=Libre SIP-klient" >> $(menuFullFilePathOne)
echo "Type=Application" >> $(menuFullFilePathOne)
echo "Icon=$(linphone_desktop_icon_name)" >> $(menuFullFilePathOne)
echo "Terminal=false" >> $(menuFullFilePathOne)
echo "Exec=$(linphone_desktop_bindir)/$(executable) 'call sip-address=%u'" >> $(menuFullFilePathOne)
echo "Using a launcher to set library path for Ubuntu-18, edit this:"
echo "Exec=$(linphone_desktop_install_scripts_prefix)/$(executable_tag) 'call sip-address=%u' >> $(menuFullFilePathOne)"
echo "MimeType=x-scheme-handler/sip;x-scheme-handler/sip-$(executable);x-scheme-handler/sips-$(executable);x-scheme-handler/sips;x-scheme-handler/tel;x-scheme-handler/callto;x-scheme-handler/$(executable)-config;" >> $(menuFullFilePathOne)
echo "X-PulseAudio-Properties=media.role=phone" >> $(menuFullFilePathOne)
echo "StartupWMClass=$(executable);$(executable)" >> $(menuFullFilePathOne)
echo "Categories=Application;Network;Telephony;Internet" >> $(menuFullFilePathOne)
echo "--- Making executable: $(menuFullFilePathOne) ---"
chmod +x $(menuFullFilePathOne)
cp -v $(menuFullFilePathOne) $(buildroot)$(linphone_desktop_install_prefix)/share/applications
cd $(buildroot)$(linphone_desktop_install_prefix)/share/applications
echo "Making $(menuFullFilePathTwo) ..."
echo "Make minimized.desktop file ..."
echo "[Desktop Entry]" > $(menuFullFilePathTwo)
echo "Encoding=UTF-8" >> $(menuFullFilePathTwo)
echo "Name=$(TITLE)" >> $(menuFullFilePathTwo)
echo "Name[fr]=$(TITLE)" >> $(menuFullFilePathTwo)
echo "Name[sv]=$(TITLE)" >> $(menuFullFilePathTwo)
echo "Name[cs]=$(TITLE)" >> $(menuFullFilePathTwo)
echo "GenericName=SIP Phone" >> $(menuFullFilePathTwo)
echo "Comment=A libre SIP client" >> $(menuFullFilePathTwo)
echo "Comment[sv]=En fri SIP-telefon-klient" >> $(menuFullFilePathTwo)
echo "Comment[fr]=Un libre SIP-client" >> $(menuFullFilePathTwo)
echo "Comment[cs]=Libre SIP-klient" >> $(menuFullFilePathTwo)
echo "Type=Application" >> $(menuFullFilePathTwo)
echo "Icon=$(linphone_desktop_invisible_icon_name)" >> $(menuFullFilePathTwo)
echo "Terminal=false" >> $(menuFullFilePathTwo)
echo "Exec=$(linphone_desktop_bindir)/$(executable) --iconified 'call sip-address=%u' >> $(menuFullFilePathTwo)"
echo "Exec=$(linphone_desktop_bindir)/$(executable) --iconified" >> $(menuFullFilePathTwo)
echo "Using a launcher to set library path on Ubuntu-18"
echo "Exec=$(linphone_desktop_install_scripts_prefix)/$(executable_tag) --iconified 'call sip-address=%u' >> $(menuFullFilePathTwo)"
echo "MimeType=x-scheme-handler/sip;x-scheme-handler/sip-$(executable);x-scheme-handler/sips-$(executable);x-scheme-handler/sips;x-scheme-handler/tel;x-scheme-handler/callto;x-scheme-handler/$(executable)-config;" >> $(menuFullFilePathTwo)
echo "X-PulseAudio-Properties=media.role=phone" >> $(menuFullFilePathTwo)
echo "StartupWMClass=$(executable);$(executable)" >> $(menuFullFilePathTwo)
echo "Categories=Application;Network;Telephony;Internet" >> $(menuFullFilePathTwo)
echo
echo "Making $(menuFullFilePathTwo) executable ..."
chmod +x $(menuFullFilePathTwo)
echo "------------------------------------"
echo "--- Creating auto-start script: ---"
echo "Make auto-start script ..."
echo "#!/usr/bin/env bash" > $(scriptFullFilePathThree)
if [ "$$RELEASE" = "$$YES" ]; then \
echo "Release:"; \
echo "# Create a script to auto-start $(app_name)" >> $(scriptFullFilePathThree); \
else \
echo "Alpha or beta versions:"; \
echo "# Create a script to auto-start $(app_name)-$(linphone_desktop_alphabeta)" >> $(scriptFullFilePathThree); \
fi
echo "# This shows the window at login" >> $(scriptFullFilePathThree)
echo "# cp \"$(linphone_desktop_install_prefix)/share/applications/$(menuFileNameTwo)\" \"\$$HOME/.config/autostart\"" >> $(scriptFullFilePathThree)
if [ "$$RELEASE" = "$$YES" ]; then \
echo "Release:"; \
echo "# This starts $(app_name) minimized or --iconified" >> $(scriptFullFilePathThree); \
else \
echo "Alpha or beta versions:"; \
echo "# This starts $(app_name)-$(linphone_desktop_alphabeta) minimized or --iconified" >> $(scriptFullFilePathThree); \
fi
echo "# Remove all previous auto-start .desktop icons" >> $(scriptFullFilePathThree)
echo "find \"\$$HOME/.config/autostart\" -name *$(executable)*.desktop -type f -exec rm -f {} +" >> $(scriptFullFilePathThree)
echo "# Copy custom linphone*.desktop file to user's \$$HOME/.config/autostart folder" >> $(scriptFullFilePathThree)
echo "mkdir -p \"\$$HOME/.config/autostart\"" >> $(scriptFullFilePathThree)
echo "cp \"$(linphone_desktop_install_prefix)/share/applications/$(menuFileNameTwo)\" \"\$$HOME/.config/autostart\"" >> $(scriptFullFilePathThree)
echo "# Make the *.desktop file executable" >> $(scriptFullFilePathThree)
echo "chmod +x \"\$$HOME/.config/autostart/$(menuFileNameTwo)\"" >> $(scriptFullFilePathThree)
echo "echo \"Done. $(executableHumanFormat) is in auto-start mode.\"" >> $(scriptFullFilePathThree)
echo "Making script executable ..."
echo "Make script executable"
chmod +x $(scriptFullFilePathThree)
echo "--- Creating remove-auto-start script: ---"
echo "Make remove auto-start script"
echo "#!/usr/bin/env bash" > $(scriptFullFilePathFour)
if [ "$$RELEASE" = "$$YES" ]; then \
echo "Release:"; \
echo "# Create a script to remove auto-start $(app_name)" >> $(scriptFullFilePathFour); \
else \
echo "Alpha or beta versions:"; \
echo "# Create a script to remove auto-start $(app_name)-$(linphone_desktop_alphabeta)" >> $(scriptFullFilePathFour); \
fi
echo "rm -f \"\$$HOME/.config/autostart/$(menuFileNameTwo)\"" >> $(scriptFullFilePathFour)
echo "echo \"Done. $(executableHumanFormat) is no longer in auto-start mode.\"" >> $(scriptFullFilePathFour)
echo "Make script executable"
chmod +x $(scriptFullFilePathFour)
echo "Problem code starts here..."
echo "--- Creating change-icon script: ---"
echo "Create script to change-$(executable)-icon on user basis"
echo "#!/usr/bin/env bash" > $(scriptFullFilePathTwo)
echo "# Change $(executable) icon" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "SCRIPT_DIR=\"\$$( cd \"\$$( dirname \"\$${BASH_SOURCE[0]}\" )\" &> /dev/null && pwd )\"" >> $(scriptFullFilePathTwo)
echo "cd \$$SCRIPT_DIR" >> $(scriptFullFilePathTwo)
echo "echo" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "LINPHONE_ICON_NAME=\"$(linphone_desktop_icon_name)\"" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "echo \"Which icon do you prefer for $(app_name) $(linphone_version)?\"" >> $(scriptFullFilePathTwo)
echo "sleep 3" >> $(scriptFullFilePathTwo)
echo "echo \"Select a number in the list that shows up.\"" >> $(scriptFullFilePathTwo)
echo "sleep 3" >> $(scriptFullFilePathTwo)
echo "echo \"Hit Ctrl + C to cancel\"" >> $(scriptFullFilePathTwo)
echo "sleep 3" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "cd ../$(app_name)/$(linphone_version)/$(scalable_hicolor_icons_reldir)" >> $(scriptFullFilePathTwo)
echo "# Show the icon selection:" >> $(scriptFullFilePathTwo)
echo "xdg-open ./" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "IMG=abc.svg" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "FILE=a" >> $(scriptFullFilePathTwo)
echo "select file in \$$(ls *.svg); do " >> $(scriptFullFilePathTwo)
echo " echo \$$REPLY \$$file" >> $(scriptFullFilePathTwo)
echo " FILE=\$$file" >> $(scriptFullFilePathTwo)
echo " break" >> $(scriptFullFilePathTwo)
echo "done" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "mkdir -p \"/home/\$$USER/.local/$(scalable_hicolor_icons_reldir)\"" >> $(scriptFullFilePathTwo)
echo "if [ ! -f \"/home/\$$USER/.local/share/icons/hicolor/index.theme\" ]; then" >> $(scriptFullFilePathTwo)
echo " cp \"/usr/share/icons/hicolor/index.theme\" \"/home/\$$USER/.local/share/icons/hicolor/index.theme\" " >> $(scriptFullFilePathTwo)
echo "fi" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "# We only want to change the icon on this version." >> $(scriptFullFilePathTwo)
echo "cp \"\$$FILE\" \"/home/\$$USER/.local/$(scalable_hicolor_icons_reldir)/$(linphone_desktop_icon_filename)\"" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "echo \"You can change the icon by exchanging the file:\"" >> $(scriptFullFilePathTwo)
echo "echo \"/home/\$$USER/.local/$(scalable_hicolor_icons_reldir)/$(linphone_desktop_icon_name).svg\"" >> $(scriptFullFilePathTwo)
echo "sleep 5" >> $(scriptFullFilePathTwo)
echo "echo \"The folder will be opened for you now.\"" >> $(scriptFullFilePathTwo)
echo "sleep 3" >> $(scriptFullFilePathTwo)
echo "xdg-open \"/home/\$$USER/.local/$(scalable_hicolor_icons_reldir)/\" &" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "--- We also need to create a local .desktop file to show the icon ---"
echo "cp $(linphone_desktop_install_prefix)/share/applications/$(executable_tag).desktop \$$HOME/.local/share/applications" >> $(scriptFullFilePathTwo)
echo "chmod +x \$$HOME/.local/share/applications" >> $(scriptFullFilePathTwo)
echo "sed -i \"s|Icon.*|Icon=\$${HOME}\/\.local\/share\/icons\/hicolor\/scalable\/apps\/$(executable_condensed_tag)\.svg|g\" \$$HOME/.local/share/applications/$(executable_tag).desktop" >> $(scriptFullFilePathTwo)
echo "touch \$$HOME/.local/share/icons/hicolor" >> $(scriptFullFilePathTwo)
echo "gtk-update-icon-cache \$$HOME/.local/share/icons/hicolor" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "touch \"/home/\$$USER/.local/share/icons/hicolor\"" >> $(scriptFullFilePathTwo)
echo "gtk-update-icon-cache \"/home/\$$USER/.local/share/icons/hicolor\"" >> $(scriptFullFilePathTwo)
echo "" >> $(scriptFullFilePathTwo)
echo "exit 0" >> $(scriptFullFilePathTwo)
echo "--- Make script executable: $(scriptFullFilePathTwo) ---"
chmod +x $(scriptFullFilePathTwo)
echo "----------------------------"
echo "Do not forget to link /usr/bin/change-$(executable_tag_lowercase)-icon with $(scriptFullFilePathTwo)"
echo "--- Make $(deb_name) script: pre-uninstall-linphone ---"
echo "--- Make $(deb_name) link: pre-uninstall-$(executable_tag_lowercase) ---"
echo "#!/usr/bin/env bash" > $(scriptFullFilePathFive)
echo "# Completely uninstall linphone $(linphone_version)" >> $(scriptFullFilePathFive)
echo "SCRIPT_DIR=\"\$$( cd \"\$$( dirname \"\$${BASH_SOURCE[0]}\" )\" &> /dev/null && pwd )\"" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "cd \$$SCRIPT_DIR" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "function shouldbedeleted() {" >> $(scriptFullFilePathFive)
echo " string=\$$(realpath \"\$$1\")" >> $(scriptFullFilePathFive)
echo " # Checking path: \$$string" >> $(scriptFullFilePathFive)
echo " if [[ \$$string == *\"$(linphone_version)\"* ]]; then" >> $(scriptFullFilePathFive)
echo " # 0 = true" >> $(scriptFullFilePathFive)
echo " # \"Should be deleted.\"" >> $(scriptFullFilePathFive)
echo " return 0 " >> $(scriptFullFilePathFive)
echo " else" >> $(scriptFullFilePathFive)
echo " # 1 = false" >> $(scriptFullFilePathFive)
echo " # \"Keep.\"" >> $(scriptFullFilePathFive)
echo " return 1" >> $(scriptFullFilePathFive)
echo " fi" >> $(scriptFullFilePathFive)
echo "}" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "# Check if root" >> $(scriptFullFilePathFive)
echo "if [ \"\$$EUID\" -ne 0 ]" >> $(scriptFullFilePathFive)
echo " then echo \"Please run as root or type: sudo pre-uninstall-linphone and press TAB key twice to auto-fill\"" >> $(scriptFullFilePathFive)
echo " exit" >> $(scriptFullFilePathFive)
echo "fi" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "for fileorlink in linphone*" >> $(scriptFullFilePathFive)
echo "do" >> $(scriptFullFilePathFive)
echo " if \$$(shouldbedeleted \"\$$fileorlink\"); then" >> $(scriptFullFilePathFive)
echo " # \$$fileorlink will be deleted" >> $(scriptFullFilePathFive)
echo " # Delete command:" >> $(scriptFullFilePathFive)
echo " rm -f \"\$$fileorlink\"" >> $(scriptFullFilePathFive)
echo " fi" >> $(scriptFullFilePathFive)
echo "done" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "# To find all broken symbolic links under a given directory, run the following command to delete them:" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "# Find broken symbolic links commands:" >> $(scriptFullFilePathFive)
echo "# find . -xtype l -delete 2>/dev/null (run it twice)" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "# find . -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "# find . -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "echo \"Removing broken links in /usr/local/$(app_name)\"" >> $(scriptFullFilePathFive)
echo "echo \"find /usr/local/$(app_name) -xtype l -delete (run it twice)\"" >> $(scriptFullFilePathFive)
echo "find /usr/local/$(app_name) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "find /usr/local/$(app_name) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "echo \"cd /usr/local/bin\"" >> $(scriptFullFilePathFive)
#echo " sleep 2" >> $(scriptFullFilePathFive)
echo "cd $(linphone_desktop_install_scripts_prefix)" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "echo \"Removing broken links in $(linphone_desktop_install_scripts_prefix)\"" >> $(scriptFullFilePathFive)
echo "echo \"find $(linphone_desktop_install_scripts_prefix) -xtype l -delete (run it twice)\"" >> $(scriptFullFilePathFive)
echo "find $(linphone_desktop_install_scripts_prefix) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "find $(linphone_desktop_install_scripts_prefix) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "for fileorlink in linphone*" >> $(scriptFullFilePathFive)
echo "do" >> $(scriptFullFilePathFive)
echo " if \$$(shouldbedeleted \"\$$fileorlink\"); then" >> $(scriptFullFilePathFive)
echo " # \$$fileorlink will be deleted" >> $(scriptFullFilePathFive)
echo " # Delete command:" >> $(scriptFullFilePathFive)
echo " rm -f \"\$$fileorlink\"" >> $(scriptFullFilePathFive)
echo " fi" >> $(scriptFullFilePathFive)
echo "done" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "echo \"Deleted directory $(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathFive)
echo "echo \"If directory above, linphone-destop is empty, then it can also be deleted.\"" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "echo \"Directory list command:\"" >> $(scriptFullFilePathFive)
echo "echo \"ls -al $(linphone_desktop_install_dir_parent_dir)\"" >> $(scriptFullFilePathFive)
echo "ls -al \"$(linphone_desktop_install_dir_parent_dir)\"" >> $(scriptFullFilePathFive)
echo " " >> $(scriptFullFilePathFive)
echo "if [ -z \"\$$(ls -A $(linphone_desktop_install_dir_parent_dir))\" ]; then" >> $(scriptFullFilePathFive)
echo " echo" >> $(scriptFullFilePathFive)
echo " echo \"$(linphone_desktop_install_dir_parent_dir) is empty\"" >> $(scriptFullFilePathFive)
echo " echo \"The directory:\"" >> $(scriptFullFilePathFive)
echo " echo \"$(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathFive)
echo " echo \"should also be deleted.\"" >> $(scriptFullFilePathFive)
echo " echo" >> $(scriptFullFilePathFive)
echo " echo \"Delete command:\"" >> $(scriptFullFilePathFive)
echo " echo \"rm -rf $(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathFive)
echo " rm -rf \"$(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathFive)
echo "else" >> $(scriptFullFilePathFive)
echo " echo" >> $(scriptFullFilePathFive)
echo " echo \"$(linphone_desktop_install_dir_parent_dir) is not empty\"" >> $(scriptFullFilePathFive)
echo " echo \"Keeping the directory.\"" >> $(scriptFullFilePathFive)
echo "fi" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "echo \"Broken symbolic links:\"" >> $(scriptFullFilePathFive)
echo "echo \"find /usr/local/bin -xtype l -delete (run it twice)\"" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "find $(linphone_desktop_install_scripts_prefix) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "find $(linphone_desktop_install_scripts_prefix) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathFive)
echo "" >> $(scriptFullFilePathFive)
echo "# Users on the system" >> $(scriptFullFilePathFive)
echo "USERS=\$$(awk -F':' '{ print \$$1}' /etc/passwd)" >> $(scriptFullFilePathFive)
echo "echo \"These users seems to have access to linphone:\"" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "echo \$$USERS" >> $(scriptFullFilePathFive)
echo "sleep 2" >> $(scriptFullFilePathFive)
echo "echo \"I will now remove the links to linphone for:\"" >> $(scriptFullFilePathFive)
echo "# echo \$$USERS" >> $(scriptFullFilePathFive)
echo "sleep 2" >> $(scriptFullFilePathFive)
echo "#for username in \$$(awk -F':' '{ print \$$1}' /etc/passwd); do" >> $(scriptFullFilePathFive)
echo "for user in \$$USERS; do" >> $(scriptFullFilePathFive)
echo " #echo User: \$$user" >> $(scriptFullFilePathFive)
echo " if [ -d \"/home/\$$user/.local/share\" ]; then" >> $(scriptFullFilePathFive)
echo " echo \"User: \$$user\"" >> $(scriptFullFilePathFive)
echo " fi" >> $(scriptFullFilePathFive)
echo " if [ -d \"/home/\$$user/.local/share/icons/hicolor\" ]; then" >> $(scriptFullFilePathFive)
echo " # echo \"User \$$user has directory /home/\$$user/.local/share/icons/hicolor\"" >> $(scriptFullFilePathFive)
echo " # echo \"rm -f home/\$$user/.local/share/icons/hicolor/scalable/apps/$(executable_tag_lowercase).svg\"" >> $(scriptFullFilePathFive)
echo " rm -f \"/home/\$$user/.local/share/icons/hicolor/scalable/apps/$(linphone_desktop_icon_filename)\"" >> $(scriptFullFilePathFive)
echo " echo \"Deleted /home/\$$user/.local/share/icons/hicolor/scalable/apps/$(linphone_desktop_icon_filename)\"" >> $(buildroot)%
echo " echo \"touch /home/\$$user/.local/share/icons/hicolor\"" >> $(scriptFullFilePathFive)
echo " touch \"/home/\$$user/.local/share/icons/hicolor\"" >> $(scriptFullFilePathFive)
echo " # echo \"gtk-update-icon-cache /home/\$$user/.local/share/icons/hicolor > /dev/null\"" >> $(scriptFullFilePathFive)
echo " gtk-update-icon-cache \"/home/\$$user/.local/share/icons/hicolor\" > /dev/null " >> $(scriptFullFilePathFive)
echo " fi" >> $(scriptFullFilePathFive)
echo " if [ -d \"/home/\$$user/.local/share/applications\" ]; then" >> $(scriptFullFilePathFive)
echo " # echo \"User \$$user\ has directory /home/\$user/.local/share/applications\"" >> $(scriptFullFilePathFive)
echo " # echo \"rm -f home/\$$user/.local/share/applications/$(executable_tag_lowercase).desktop\"" >> $(scriptFullFilePathFive)
echo " rm -f \"/home/\$$user/.local/share/share/applications/$(executable_tag_lowercase).desktop\"" >> $(scriptFullFilePathFive)
echo " echo \"Deleted /home/\$$user/.local/share/applications/$(executable_tag_lowercase).desktop\"" >> $(buildroot)%
echo " fi" >> $(scriptFullFilePathFive)
echo " if [ -d \"/home/\$$user/.config/autostart\" ]; then" >> $(scriptFullFilePathFive)
echo " # echo \"User \$$user has directory /home/$user/.config/autostart\"" >> $(scriptFullFilePathFive)
echo " # echo \"rm -f /home/\$$user/.config/autostart/$(executable_tag)-minimized.desktop\"" >> $(scriptFullFilePathFive)
echo " rm -f /home/\$$user/.config/autostart/$(executable_tag)-minimized.desktop" >> $(scriptFullFilePathFive)
echo " echo \"Deleted /home/\$$user/.config/autostart/$(executable_tag_lowercase)-minimized.desktop\"" >> $(scriptFullFilePathFive)
echo " fi" >> $(scriptFullFilePathFive)
echo "done" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "echo \"[OK] Completely removed all links to $(app_name) $(linphone_version) from user's accounts.\"" >> $(scriptFullFilePathFive)
echo "echo" >> $(scriptFullFilePathFive)
echo "exit 0" >> $(scriptFullFilePathFive)
chmod +x $(scriptFullFilePathFive)
# cp $(scriptFullFilePathFive) $(buildroot)$(linphone_desktop_install_prefix)/bin/uninstall-$(executable)
echo "--- End make $(deb_name) script: pre-uninstall-$(executable_tag_lowercase) ---"
echo "--- Make $(deb_name) script: uninstall-$(executable) ---"
echo "--- Make $(deb_name) link: uninstall-$(executable_tag_lowercase) ---"
echo "#!/usr/bin/env bash" > $(scriptFullFilePathOne)
echo "# Completely uninstall linphone $(linphone_version)" >> $(scriptFullFilePathOne)
echo "SCRIPT_DIR=\"\$$( cd \"\$$( dirname \"\$${BASH_SOURCE[0]}\" )\" &> /dev/null && pwd )\"" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "cd \$$SCRIPT_DIR" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "$(linphone_desktop_install_prefix)/bin/pre-uninstall-$(executable)" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "function shouldbedeleted() {" >> $(scriptFullFilePathOne)
echo " string=\$$(realpath \"\$$1\")" >> $(scriptFullFilePathOne)
echo " # Checking path: \$$string" >> $(scriptFullFilePathOne)
echo " if [[ \$$string == *\"$(linphone_version)\"* ]]; then" >> $(scriptFullFilePathOne)
echo " # 0 = true" >> $(scriptFullFilePathOne)
echo " # \"Should be deleted.\"" >> $(scriptFullFilePathOne)
echo " return 0 " >> $(scriptFullFilePathOne)
echo " else" >> $(scriptFullFilePathOne)
echo " # 1 = false" >> $(scriptFullFilePathOne)
echo " # \"Keep.\"" >> $(scriptFullFilePathOne)
echo " return 1" >> $(scriptFullFilePathOne)
echo " fi" >> $(scriptFullFilePathOne)
echo "}" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "# Check if root" >> $(scriptFullFilePathOne)
echo "if [ \"\$$EUID\" -ne 0 ]" >> $(scriptFullFilePathOne)
echo " then echo \"Please run as root or type: sudo uninstall-linphone and press TAB key twice to auto-fill\"" >> $(scriptFullFilePathOne)
echo " exit" >> $(scriptFullFilePathOne)
echo "fi" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "CHECK_IF_DEB_IS_INSTALLED=\$$(dpkg-query -W --showformat='\$${Status}' $(deb_name) | grep \"install ok installed\")" >> $(scriptFullFilePathOne)
echo "if [ -n \"\$$CHECK_IF_DEB_IS_INSTALLED\" ]; then" >> $(scriptFullFilePathOne)
echo " echo \"$(app_name) was installed as DEB package $(deb_name)\"" >> $(scriptFullFilePathOne)
echo " sleep 2" >> $(scriptFullFilePathOne)
echo " echo \"I will try to uninstall the DEB package $(deb_name).\"" >> $(scriptFullFilePathOne)
echo " sleep 2" >> $(scriptFullFilePathOne)
echo " echo \"Then I will check that everything was deleted.\"" >> $(scriptFullFilePathOne)
echo " sleep 2" >> $(scriptFullFilePathOne)
echo " echo \"Uninstall command:\"" >> $(scriptFullFilePathOne)
echo " echo \" apt-get -y remove --purge $(deb_name)\"" >> $(scriptFullFilePathOne)
echo " sleep 2" >> $(scriptFullFilePathOne)
echo " apt-get -y remove --purge $(deb_name) && apt-get -y autoremove" >> $(scriptFullFilePathOne)
echo "else" >> $(scriptFullFilePathOne)
echo " echo \"It looks like variable \$$CHECK_IF_DEB_IS_INSTALLED is empty.\"" >> $(scriptFullFilePathOne)
echo " sleep 2" >> $(scriptFullFilePathOne)
echo " echo \"That means that the DEB package $(deb_name) is not installed.\"" >> $(scriptFullFilePathOne)
echo " sleep 2" >> $(scriptFullFilePathOne)
echo " echo CHECK_IF_DEB_IS_INSTALLED=\$$CHECK_IF_DEB_IS_INSTALLED" >> $(scriptFullFilePathOne)
echo " sleep 2" >> $(scriptFullFilePathOne)
echo "fi" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "Deleting files if they still exist:" >> $(scriptFullFilePathOne)
echo " echo \"rm -f $(executable_tag_lowercase)\"" >> $(scriptFullFilePathOne)
echo "rm -f $(executable_tag_lowercase)" >> $(scriptFullFilePathOne)
echo " echo \"rm -f change-$(executable_tag_lowercase)-icon\"" >> $(scriptFullFilePathOne)
echo "rm -f change-$(executable_tag_lowercase)-icon" >> $(scriptFullFilePathOne)
echo " echo \"rm -f uninstall-$(executable_tag_lowercase)\"" >> $(scriptFullFilePathOne)
echo "rm -f uninstall-$(executable_tag_lowercase)" >> $(scriptFullFilePathOne)
echo " echo \"rm -f pre-uninstall-$(executable_tag_lowercase)\"" >> $(scriptFullFilePathOne)
echo "rm -f pre-uninstall-$(executable_tag_lowercase)" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "for fileorlink in linphone*" >> $(scriptFullFilePathOne)
echo "do" >> $(scriptFullFilePathOne)
echo " if \$$(shouldbedeleted \"\$$fileorlink\"); then" >> $(scriptFullFilePathOne)
echo " # \$$fileorlink will be deleted" >> $(scriptFullFilePathOne)
echo " # Delete command:" >> $(scriptFullFilePathOne)
echo " rm -f \"\$$fileorlink\"" >> $(scriptFullFilePathOne)
echo " fi" >> $(scriptFullFilePathOne)
echo "done" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "# To find all broken symbolic links under a given directory, run the following command to delete them:" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "echo \"Find broken symbolic links commands:\"" >> $(scriptFullFilePathOne)
echo "echo \"find . -xtype l -delete (run it twice)\"" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
#echo "find . -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathOne)
#echo "find . -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathOne)
echo "echo \"find /usr/local/$(app_name) -xtype l -delete (run it twice)\"" >> $(scriptFullFilePathOne)
echo "find /usr/local/$(app_name) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathOne)
echo "find /usr/local/$(app_name) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "echo \"cd /usr/local/bin\"" >> $(scriptFullFilePathOne)
#echo " sleep 2" >> $(scriptFullFilePathOne)
echo "cd $(linphone_desktop_install_scripts_prefix)" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "echo \"find /usr/local/bin -xtype l -delete\"" >> $(scriptFullFilePathOne)
echo "find $(linphone_desktop_install_scripts_prefix) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathOne)
echo "find $(linphone_desktop_install_scripts_prefix) -xtype l -delete 2>/dev/null" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "for fileorlink in linphone*" >> $(scriptFullFilePathOne)
echo "do" >> $(scriptFullFilePathOne)
echo " if \$$(shouldbedeleted \"\$$fileorlink\"); then" >> $(scriptFullFilePathOne)
echo " # \$$fileorlink will be deleted" >> $(scriptFullFilePathOne)
echo " # Delete command:" >> $(scriptFullFilePathOne)
echo " rm -f \"\$$fileorlink\"" >> $(scriptFullFilePathOne)
echo " fi" >> $(scriptFullFilePathOne)
echo "done" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "echo \"Deleted directory $(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathOne)
echo "# If directory above, linphone-destop is empty, then it can also be deleted." >> $(scriptFullFilePathOne)
echo "if [ -z \"\$$(ls -A $(linphone_desktop_install_dir_parent_dir))\" ]; then" >> $(scriptFullFilePathOne)
echo " echo" >> $(scriptFullFilePathOne)
echo " echo \"$(linphone_desktop_install_dir_parent_dir) is empty\"" >> $(scriptFullFilePathOne)
echo " echo \"The directory:\"" >> $(scriptFullFilePathOne)
echo " echo \"$(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathOne)
echo " echo \"will also be deleted.\"" >> $(scriptFullFilePathOne)
echo " echo" >> $(scriptFullFilePathOne)
echo " echo \"Delete command:\"" >> $(scriptFullFilePathOne)
echo " echo \"rm -rf $(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathOne)
echo " rm -rf \"$(linphone_desktop_install_prefix)\"" >> $(scriptFullFilePathOne)
echo "else" >> $(scriptFullFilePathOne)
echo " echo" >> $(scriptFullFilePathOne)
echo " echo \"$(linphone_desktop_install_dir_parent_dir) is not empty\"" >> $(scriptFullFilePathOne)
echo " echo \"Keeping the directory.\"" >> $(scriptFullFilePathOne)
echo "fi" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "echo \"[OK] Completely removed $(app_name) $(linphone_version)\"" >> $(scriptFullFilePathOne)
echo "echo" >> $(scriptFullFilePathOne)
echo "exit 0" >> $(scriptFullFilePathOne)
chmod +x $(scriptFullFilePathOne)
# cp $(scriptFullFilePathOne) $(buildroot)$(linphone_desktop_install_prefix)/bin/uninstall-$(executable)
echo "--- End make $(deb_name) script: uninstall-$(executable_tag_lowercase) ---"
echo "----------------------------"
echo "Do not forget to link /usr/bin/set-$(executable_tag_lowercase)-xdg-open-gio-mime with $(scriptFullFilePathSix)"
echo "--- Make $(deb_name) script: set-linphone-xdg-open-gio-mime ---"
echo "--- Make $(deb_name) link: set-$(executable_tag_lowercase)-xdg-open-gio-mime ---"
echo "#!/usr/bin/env bash" > $(scriptFullFilePathSix)
echo "# Set up linphone $(linphone_version) mime types" >> $(scriptFullFilePathSix)
echo "SCRIPT_DIR=\"\$$( cd \"\$$( dirname \"\$${BASH_SOURCE[0]}\" )\" &> /dev/null && pwd )\"" >> $(scriptFullFilePathSix)
echo "" >> $(scriptFullFilePathSix)
echo "cd \$$SCRIPT_DIR" >> $(scriptFullFilePathSix)
echo "echo" >> $(scriptFullFilePathSix)
echo "# Set gio associations" >> $(scriptFullFilePathSix)
echo "gio mime x-scheme-handler/tel $(executable_tag).desktop" >> $(scriptFullFilePathSix)
echo "gio mime x-scheme-handler/callto $(executable_tag).desktop" >> $(scriptFullFilePathSix)
echo "gio mime x-scheme-handler/sip $(executable_tag).desktop" >> $(scriptFullFilePathSix)
echo "gio mime x-scheme-handler/sips $(executable_tag).desktop" >> $(scriptFullFilePathSix)
echo "gio mime x-scheme-handler/sip-linphone $(executable_tag).desktop" >> $(scriptFullFilePathSix)
echo "gio mime x-scheme-handler/sips-linphone $(executable_tag).desktop" >> $(scriptFullFilePathSix)
echo "gio mime x-scheme-handler/linphone-config $(executable_tag).desktop" >> $(scriptFullFilePathSix)
echo "echo \"[OK] Set gio associations to $(executable_tag).desktop for:\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/tel\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/callto\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sip\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sips\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sip-linphone\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sips-linphone\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/linphone-config\"" >> $(scriptFullFilePathSix)
echo "" >> $(scriptFullFilePathSix)
echo "# Set xdg-open (xdg-mime) associations\"" >> $(scriptFullFilePathSix)
echo "xdg-mime default $(executable_tag).desktop x-scheme-handler/tel" >> $(scriptFullFilePathSix)
echo "xdg-mime default $(executable_tag).desktop x-scheme-handler/callto" >> $(scriptFullFilePathSix)
echo "xdg-mime default $(executable_tag).desktop x-scheme-handler/sip" >> $(scriptFullFilePathSix)
echo "xdg-mime default $(executable_tag).desktop x-scheme-handler/sips" >> $(scriptFullFilePathSix)
echo "xdg-mime default $(executable_tag).desktop x-scheme-handler/sip-linphone" >> $(scriptFullFilePathSix)
echo "xdg-mime default $(executable_tag).desktop x-scheme-handler/sips-linphone" >> $(scriptFullFilePathSix)
echo "xdg-mime default $(executable_tag).desktop x-scheme-handler/linphone-config" >> $(scriptFullFilePathSix)
echo "echo \"[OK] Set xdg-mime associations to $(executable_tag).desktop for:\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/tel\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/callto\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sip\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sips\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sip-linphone\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/sips-linphone\"" >> $(scriptFullFilePathSix)
echo "echo \" x-scheme-handler/linphone-config\"" >> $(scriptFullFilePathSix)
echo "" >> $(scriptFullFilePathSix)
echo "echo \"Done.\"" >> $(scriptFullFilePathSix)
echo "" >> $(scriptFullFilePathSix)
echo "exit 0" >> $(scriptFullFilePathSix)
chmod +x $(scriptFullFilePathSix)
echo "--- End make $(deb_name) script: set-$(executable_tag_lowercase)-xdg-open-gio-mime ---"
echo "----------------------------"
echo "Do not forget to link /usr/bin/fix-$(executable_tag_lowercase)-xdg-open-gio-mime with $(scriptFullFilePathSeven)"
echo "--- Make $(deb_name) script: fix-linphone-xdg-open-gio-mime ---"
echo "--- Make $(deb_name) link: fix-$(executable_tag_lowercase)-xdg-open-gio-mime ---"
echo "#!/usr/bin/env bash" > $(scriptFullFilePathSeven)
echo "# Set up linphone $(linphone_version) mime types" >> $(scriptFullFilePathSeven)
echo "SCRIPT_DIR=\"\$$( cd \"\$$( dirname \"\$${BASH_SOURCE[0]}\" )\" &> /dev/null && pwd )\"" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "cd \$$SCRIPT_DIR" >> $(scriptFullFilePathSeven)
echo "echo" >> $(scriptFullFilePathSeven)
echo "# file associations and mime associations can be overrided" >> $(scriptFullFilePathSeven)
echo "# by user. In file /home/$USER/.config/mimeapps.list" >> $(scriptFullFilePathSeven)
echo "#" >> $(scriptFullFilePathSeven)
echo "# Add a line like:" >> $(scriptFullFilePathSeven)
echo "# [Added Associations]" >> $(scriptFullFilePathSeven)
echo "# x-scheme-handler/tel=linphone430-beta1.desktop" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "DESKTOPFILE=$(executable_tag).desktop" >> $(scriptFullFilePathSeven)
echo "MIMEFILE=/home/\$$USER/.config/mimeapps.list" >> $(scriptFullFilePathSeven)
echo "# echo MIMEFILE=\$$MIMEFILE" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "function findHeadings () {" >> $(scriptFullFilePathSeven)
echo " # Remove all blank lines in \$$MIMEFILE" >> $(scriptFullFilePathSeven)
echo " sed -i '/^[[:space:]]*\$$/d' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " export FLAG_DEFAULT_APPLICATIONS=0" >> $(scriptFullFilePathSeven)
echo " export FLAG_ADDED_ASSOCIATIONS=0" >> $(scriptFullFilePathSeven)
echo " export FLAG_REMOVED_ASSOCIATIONS=0" >> $(scriptFullFilePathSeven)
echo " # Find the line where these sections currently are located:" >> $(scriptFullFilePathSeven)
echo " export LINE_DEFAULT_APPLICATIONS=\$$(grep -Fn '[Default Applications]' \"\$$MIMEFILE\" | cut -d':' -f1)" >> $(scriptFullFilePathSeven)
echo " export LINE_ADDED_ASSOCIATIONS=\$$(grep -Fn '[Added Associations]' \"\$$MIMEFILE\" | cut -d':' -f1)" >> $(scriptFullFilePathSeven)
echo " export LINE_REMOVED_ASSOCIATIONS=\$$(grep -Fn '[Removed Associations]' \"\$$MIMEFILE\" | cut -d':' -f1)" >> $(scriptFullFilePathSeven)
echo " if [ \$$((LINE_DEFAULT_APPLICATIONS)) -gt 0 ];then" >> $(scriptFullFilePathSeven)
echo " export FLAG_DEFAULT_APPLICATIONS=1" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # Add section '[Default Applications]'" >> $(scriptFullFilePathSeven)
echo " # echo '[Default Applications]' >> \"$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " export LINE_DEFAULT_APPLICATIONS=-1" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo " # echo LINE_DEFAULT_APPLICATIONS=\$$LINE_DEFAULT_APPLICATIONS" >> $(scriptFullFilePathSeven)
echo " if [ \$$((LINE_ADDED_ASSOCIATIONS)) -gt 0 ];then" >> $(scriptFullFilePathSeven)
echo " export FLAG_ADDED_ASSOCIATIONS=1" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # Add section '[Added Associations]'" >> $(scriptFullFilePathSeven)
echo " echo '[Added Associations]' >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " export FLAG_ADDED_ASSOCIATIONS=1" >> $(scriptFullFilePathSeven)
echo " # export LINE_ADDED_ASSOCIATIONS=\$$(grep -Fn '[Added Associations]' \"\$$MIMEFILE\" | cut -d':' -f1)" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo " # echo LINE_ADDED_ASSOCIATIONS=\$$LINE_ADDED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " if [ \$$((LINE_REMOVED_ASSOCIATIONS)) -gt 0 ];then" >> $(scriptFullFilePathSeven)
echo " export FLAG_REMOVED_ASSOCIATIONS=1" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # Add section '[Removed Associations]'" >> $(scriptFullFilePathSeven)
echo " # echo '[Removed Associations]' >> \"$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " export LINE_REMOVED_ASSOCIATIONS=-1" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo " # echo LINE_REMOVED_ASSOCIATIONS=\$$LINE_REMOVED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " # echo LINE_DEFAULT_APPLICATIONS=\$$LINE_DEFAULT_APPLICATIONS" >> $(scriptFullFilePathSeven)
echo " # echo LINE_ADDED_ASSOCIATIONS=\$$LINE_ADDED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " # echo LINE_REMOVED_ASSOCIATIONS=\$$LINE_REMOVED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " # echo FLAG_DEFAULT_APPLICATIONS=\$$FLAG_DEFAULT_APPLICATIONS" >> $(scriptFullFilePathSeven)
echo " # echo FLAG_ADDED_ASSOCIATIONS=\$$FLAG_ADDED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " # echo FLAG_REMOVED_ASSOCIATIONS=\$$FLAG_REMOVED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo "}" >> $(scriptFullFilePathSeven)
echo "# Separate the file by section:" >> $(scriptFullFilePathSeven)
echo "# [Default Applications]" >> $(scriptFullFilePathSeven)
echo "# [Added Associations]" >> $(scriptFullFilePathSeven)
echo "findHeadings # run twice" >> $(scriptFullFilePathSeven)
echo "findHeadings" >> $(scriptFullFilePathSeven)
echo "# Order the sections, 'Added Associations' last" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "if [ \$$((FLAG_REMOVED_ASSOCIATIONS)) -eq 1 ];then" >> $(scriptFullFilePathSeven)
echo " # Section [Removed Associations] is present in \$$MIMEFILE" >> $(scriptFullFilePathSeven)
echo " echo Section [Removed Associations] is present in \$$MIMEFILE" >> $(scriptFullFilePathSeven)
echo " if [ \$$((LINE_REMOVED_ASSOCIATIONS)) -lt \$$((LINE_ADDED_ASSOCIATIONS)) ];then" >> $(scriptFullFilePathSeven)
echo " echo \"[OK] Heading [Added Associations] is located after heading [Removed Associations]\"" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # echo \"[RE-ARRANGE] Heading [Added Associations] is located before heading [Removed Associations]\"" >> $(scriptFullFilePathSeven)
echo " FROMLINE=\$$LINE_ADDED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " TOLINE=\$$(($LINE_REMOVED_ASSOCIATIONS - 1))" >> $(scriptFullFilePathSeven)
echo " # echo FROMLINE=\$$FROMLINE" >> $(scriptFullFilePathSeven)
echo " # echo TOLINE=\$$TOLINE" >> $(scriptFullFilePathSeven)
echo " # Move first section to end of file" >> $(scriptFullFilePathSeven)
echo " # Add empty line first, at the end of the file" >> $(scriptFullFilePathSeven)
echo " echo >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # sed -n \$${LINE},\\$$p \$${INPUT_FILE} > \$${OUTPUT_FILE}" >> $(scriptFullFilePathSeven)
echo " sed -n \$${FROMLINE},\$${TOLINE}p \$$MIMEFILE >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # awk 'NR>=\$$FROMLINE && NR<=\$$TOLINE' file1.txt > file2.txt" >> $(scriptFullFilePathSeven)
echo " # Delete first section" >> $(scriptFullFilePathSeven)
echo " sed -i -e \$${FROMLINE},\$${TOLINE}d \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # Replace double empty lines with one empty line" >> $(scriptFullFilePathSeven)
echo " sed -i 'N;/^\\\n\$$/D;P;D;' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " findHeadings # run twice" >> $(scriptFullFilePathSeven)
echo " findHeadings" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo "fi" >> $(scriptFullFilePathSeven)
echo "if [ \$$((FLAG_DEFAULT_APPLICATIONS)) -eq 1 ];then" >> $(scriptFullFilePathSeven)
echo " # Section [Default Applications] is present in \$$MIMEFILE" >> $(scriptFullFilePathSeven)
echo " echo Section [Default Applications] is present in \$$MIMEFILE" >> $(scriptFullFilePathSeven)
echo " if [ \$$((LINE_DEFAULT_APPLICATIONS)) -lt \$$((LINE_ADDED_ASSOCIATIONS)) ];then" >> $(scriptFullFilePathSeven)
echo " echo \"[OK] Heading [Added Associations] is located after heading [Default Applications]\"" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # echo \"[RE-ARRANGE] Heading [Added Associations] is located before heading [Default Applications]\"" >> $(scriptFullFilePathSeven)
echo " FROMLINE=\$$LINE_ADDED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " TOLINE=\$$((\$$LINE_DEFAULT_APPLICATIONS - 1))" >> $(scriptFullFilePathSeven)
echo " # echo FROMLINE=\$$FROMLINE" >> $(scriptFullFilePathSeven)
echo " # echo TOLINE=\$$TOLINE" >> $(scriptFullFilePathSeven)
echo " # Move first section to end of file" >> $(scriptFullFilePathSeven)
echo " # Add empty line first, at the end of the file" >> $(scriptFullFilePathSeven)
echo " echo >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # sed -n \$${LINE},\\$$p \$${INPUT_FILE} > \$${OUTPUT_FILE}" >> $(scriptFullFilePathSeven)
echo " sed -n \$${FROMLINE},\$${TOLINE}p \$$MIMEFILE >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # awk 'NR>=\$$FROMLINE && NR<=\$$TOLINE' file1.txt > file2.txt" >> $(scriptFullFilePathSeven)
echo " # Delete first section" >> $(scriptFullFilePathSeven)
echo " sed -i -e \$${FROMLINE},\$${TOLINE}d \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # Replace double empty lines with one empty line" >> $(scriptFullFilePathSeven)
echo " sed -i 'N;/^\\\n\$$/D;P;D;' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " findHeadings # run twice" >> $(scriptFullFilePathSeven)
echo " findHeadings" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo "fi" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Sections should now be organized so that additions into section" >> $(scriptFullFilePathSeven)
echo "# [Added Associations] can be done by appending lines to \$$MIMEFILE." >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Combine the mime-types already there with new associations" >> $(scriptFullFilePathSeven)
echo "function editMimeType () {" >> $(scriptFullFilePathSeven)
echo " # echo \"--- Start function editMimeType () ---\"" >> $(scriptFullFilePathSeven)
echo " # echo \"mime type \'x-scheme-handler/\$$MIMETYPE\'\"" >> $(scriptFullFilePathSeven)
echo " # Filter out \$$MIMETYPE x-scheme-handler/sip from /usr/share/applications/mimeapps.list" >> $(scriptFullFilePathSeven)
echo " CURRENT_SIP_MIME_HANDLING=\$$(cat \"\$$MIMEFILE\" | grep \"x-scheme-handler/\$$MIMETYPE\" | cut -d'=' -f2 | sed 's/,/;/g' | sed 's/; /;/g') # Replace all commas with semicolons" >> $(scriptFullFilePathSeven)
echo " # echo CURRENT_SIP_MIME_HANDLING=\$$CURRENT_SIP_MIME_HANDLING" >> $(scriptFullFilePathSeven)
echo " # Create new xdg-open handling variable" >> $(scriptFullFilePathSeven)
echo " variable=\$$(echo \"\$$DESKTOPFILE;\$$CURRENT_SIP_MIME_HANDLING;\" | tr ' ' '\\\n' | nl | sort -u -k2 | sort -n | cut -f2-)" >> $(scriptFullFilePathSeven)
echo " # To wipe all other mime handler associations:" >> $(scriptFullFilePathSeven)
echo " variable=\"\$$DESKTOPFILE\"" >> $(scriptFullFilePathSeven)
echo " # echo variable=\$$variable" >> $(scriptFullFilePathSeven)
echo " # Remove existing URI sip handler" >> $(scriptFullFilePathSeven)
echo " sed -i \"/x-scheme-handler\/\$$MIMETYPE/d\" \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # Add mime-type as default" >> $(scriptFullFilePathSeven)
echo " # xdg-mime default \"\$$DESKTOPFILE\" x-scheme-handler/\$${MIMETYPE}" >> $(scriptFullFilePathSeven)
echo " # Add URI sip handler" >> $(scriptFullFilePathSeven)
echo " # echo \"x-scheme-handler/\$${MIMETYPE}=\$${DESKTOPFILE};\$${CURRENT_SIP_MIME_HANDLING};\" | sed 's/;;/;/g' >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " echo \"x-scheme-handler/\$${MIMETYPE}=\$${variable}\" | sed 's/;;/;/g' >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # echo \"\$${str: -1}\"" >> $(scriptFullFilePathSeven)
echo " # echo \"--- End function editMimeType () ---\"" >> $(scriptFullFilePathSeven)
echo "}" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# MIMETYPE='x-scheme-handler/sip'" >> $(scriptFullFilePathSeven)
echo "MIMETYPE='tel'" >> $(scriptFullFilePathSeven)
echo "editMimeType" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "MIMETYPE='callto'" >> $(scriptFullFilePathSeven)
echo "editMimeType" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "MIMETYPE='sip'" >> $(scriptFullFilePathSeven)
echo "editMimeType" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "MIMETYPE='sips'" >> $(scriptFullFilePathSeven)
echo "editMimeType" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "MIMETYPE='linphone-sip'" >> $(scriptFullFilePathSeven)
echo "editMimeType" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "MIMETYPE='linphone-sips'" >> $(scriptFullFilePathSeven)
echo "editMimeType" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "MIMETYPE='linphone-config'" >> $(scriptFullFilePathSeven)
echo "editMimeType" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Filter out x-scheme-handler/sip from /usr/share/applications/mimeapps.list" >> $(scriptFullFilePathSeven)
echo "# CURRENT_SIP_MIME_HANDLING=\$$(cat \$$MIMEFILE | grep 'x-scheme-handler/sip' | cut -d'=' -f2)" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Remove existing URI sip handler" >> $(scriptFullFilePathSeven)
echo "# sed -i '/x-scheme-handler\/sip/d' /usr/share/applications/mimeapps.list" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Add URI sip handler" >> $(scriptFullFilePathSeven)
echo "# echo \"x-scheme-handler/sip=linphone430-beta4.desktop,\$$CURRENT_SIP_MIME_HANDLING\" >> /usr/share/applications/mimeapps.list" >> $(scriptFullFilePathSeven)
echo "# xdg-mime default \"\$$DESKTOPFILE\" x-scheme-handler/sip" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Reorder headings" >> $(scriptFullFilePathSeven)
echo "export LINE_DEFAULT_APPLICATIONS=\$$(grep -Fn '[Default Applications]' \"\$$MIMEFILE\" | cut -d':' -f1)" >> $(scriptFullFilePathSeven)
echo "export LINE_ADDED_ASSOCIATIONS=\$$(grep -Fn '[Added Associations]' \"\$$MIMEFILE\" | cut -d':' -f1)" >> $(scriptFullFilePathSeven)
echo "export LINE_REMOVED_ASSOCIATIONS=\$$(grep -Fn '[Removed Associations]' \"\$$MIMEFILE\" | cut -d':' -f1)" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "if [ \$$((FLAG_DEFAULT_APPLICATIONS)) -eq 1 ];then" >> $(scriptFullFilePathSeven)
echo " if [ \$$((LINE_DEFAULT_APPLICATIONS)) -lt \$$((LINE_ADDED_ASSOCIATIONS)) ];then" >> $(scriptFullFilePathSeven)
echo " echo \"[OK] Heading [Added Associations] is located after heading [Default Applications]\"" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # echo \"[FINAL-RE-ARRANGE] Heading [Added Associations] is located before heading [Default Applications]\"" >> $(scriptFullFilePathSeven)
echo " FROMLINE=\$$LINE_ADDED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " TOLINE=\$$((\$$LINE_DEFAULT_APPLICATIONS - 1))" >> $(scriptFullFilePathSeven)
echo " # echo FROMLINE=\$$FROMLINE" >> $(scriptFullFilePathSeven)
echo " # echo TOLINE=\$$TOLINE" >> $(scriptFullFilePathSeven)
echo " # Move first section to end of file" >> $(scriptFullFilePathSeven)
echo " # Add empty line first, at the end of the file" >> $(scriptFullFilePathSeven)
echo " # echo >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # sed -n \$${LINE},\\$$p \$${INPUT_FILE} > \$${OUTPUT_FILE}" >> $(scriptFullFilePathSeven)
echo " sed -n \$${FROMLINE},\$${TOLINE}p \$$MIMEFILE >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # awk 'NR>=\$$FROMLINE && NR<=\$$TOLINE' file1.txt > file2.txt" >> $(scriptFullFilePathSeven)
echo " # Delete first section" >> $(scriptFullFilePathSeven)
echo " sed -i -e \$${FROMLINE},\$${TOLINE}d \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # Replace double empty lines with one empty line" >> $(scriptFullFilePathSeven)
echo " # sed -i 'N;/^\\\n\$$/D;P;D;' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " findHeadings # run twice" >> $(scriptFullFilePathSeven)
echo " findHeadings" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo "fi" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "if [ \$$((FLAG_REMOVED_ASSOCIATIONS)) -eq 1 ];then" >> $(scriptFullFilePathSeven)
echo " if [ \$$((LINE_ADDED_ASSOCIATIONS)) -lt \$$((LINE_REMOVED_ASSOCIATIONS)) ];then" >> $(scriptFullFilePathSeven)
echo " echo \"[OK] Heading [Removed Associations] is located after heading [Added Associations]\"" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # echo \"[FINAL-RE-ARRANGE] Heading [Removed Associations] is located before heading [Added Associations]\"" >> $(scriptFullFilePathSeven)
echo " FROMLINE=\$$LINE_REMOVED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " TOLINE=\$$(($LINE_ADDED_ASSOCIATIONS - 1))" >> $(scriptFullFilePathSeven)
echo " # echo FROMLINE=\$$FROMLINE" >> $(scriptFullFilePathSeven)
echo " # echo TOLINE=\$$TOLINE" >> $(scriptFullFilePathSeven)
echo " # Move first section to end of file" >> $(scriptFullFilePathSeven)
echo " # Add empty line first, at the end of the file" >> $(scriptFullFilePathSeven)
echo " # echo >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # sed -n \$${LINE},\\$$p \$${INPUT_FILE} > \$${OUTPUT_FILE}" >> $(scriptFullFilePathSeven)
echo " sed -n \$${FROMLINE},\$${TOLINE}p \$$MIMEFILE >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # awk 'NR>=\$$FROMLINE && NR<=\$$TOLINE' file1.txt > file2.txt" >> $(scriptFullFilePathSeven)
echo " # Delete first section" >> $(scriptFullFilePathSeven)
echo " sed -i -e \$${FROMLINE},\$${TOLINE}d \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # Replace double empty lines with one empty line" >> $(scriptFullFilePathSeven)
echo " # sed -i 'N;/^\\\n\$$/D;P;D;' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " findHeadings # run twice" >> $(scriptFullFilePathSeven)
echo " findHeadings" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo "fi" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "if [ \$$((FLAG_DEFAULT_APPLICATIONS)) -eq 1 ];then" >> $(scriptFullFilePathSeven)
echo " if [ \$$((FLAG_DEFAULT_APPLICATIONS)) -lt \$$((LINE_ADDED_ASSOCIATIONS)) ];then" >> $(scriptFullFilePathSeven)
echo " echo \"[OK] Heading [Added Associations] is located after heading [Default Applications]\"" >> $(scriptFullFilePathSeven)
echo " else" >> $(scriptFullFilePathSeven)
echo " # echo \"[FINAL-RE-ARRANGE] Heading [Added Associations] is located before heading [Default Applications]\"" >> $(scriptFullFilePathSeven)
echo " FROMLINE=\$$LINE_ADDED_ASSOCIATIONS" >> $(scriptFullFilePathSeven)
echo " TOLINE=\$$((\$$LINE_DEFAULT_APPLICATIONS - 1))" >> $(scriptFullFilePathSeven)
echo " # echo FROMLINE=\$$FROMLINE" >> $(scriptFullFilePathSeven)
echo " # echo TOLINE=\$$TOLINE" >> $(scriptFullFilePathSeven)
echo " # Move first section to end of file" >> $(scriptFullFilePathSeven)
echo " # Add empty line first, at the end of the file" >> $(scriptFullFilePathSeven)
echo " # echo >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # sed -n \$${LINE},\\$$p \$${INPUT_FILE} > \$${OUTPUT_FILE}" >> $(scriptFullFilePathSeven)
echo " sed -n \$${FROMLINE},\$${TOLINE}p \$$MIMEFILE >> \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # awk 'NR>=\$$FROMLINE && NR<=\$$TOLINE' file1.txt > file2.txt" >> $(scriptFullFilePathSeven)
echo " # Delete first section" >> $(scriptFullFilePathSeven)
echo " sed -i -e \$${FROMLINE},\$${TOLINE}d \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " # Replace double empty lines with one empty line" >> $(scriptFullFilePathSeven)
echo " # sed -i 'N;/^\\\n\$$/D;P;D;' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo " findHeadings # run twice" >> $(scriptFullFilePathSeven)
echo " findHeadings" >> $(scriptFullFilePathSeven)
echo " fi" >> $(scriptFullFilePathSeven)
echo "fi" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# insert a blank line below every line which matches \"regex\"" >> $(scriptFullFilePathSeven)
echo "# sed '/regex/G'" >> $(scriptFullFilePathSeven)
echo "# or" >> $(scriptFullFilePathSeven)
echo "sed -i '/^\[Removed Associations\]/i \\' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo "sed -i '/^\[Added Associations\]/i \\' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Delete all the blank lines before the first line(containing any chars)" >> $(scriptFullFilePathSeven)
echo "# sed -i '1,/^\$$/d' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Delete first line if empty" >> $(scriptFullFilePathSeven)
echo "# sed '0,/^\$$/d' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo "sed -i '1{/^\$$/d}' \"\$$MIMEFILE\"" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "# Update mime database" >> $(scriptFullFilePathSeven)
echo "update-desktop-database /home/\$$USER/.local/share/applications" >> $(scriptFullFilePathSeven)
echo "#sudo update-desktop-database /usr/share/applications" >> $(scriptFullFilePathSeven)
echo "#sudo update-mime-database /usr/share/mime" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "echo \"Done.\"" >> $(scriptFullFilePathSeven)
echo "" >> $(scriptFullFilePathSeven)
echo "exit 0" >> $(scriptFullFilePathSeven)
chmod +x $(scriptFullFilePathSeven)
echo "--- End make $(deb_name) script: fix-$(executable_tag_lowercase)-xdg-open-gio-mime ---"
echo "----------------------------"
echo "--- Create markup manpage for: $(executable)$(linphone_desktop_tag) ---"
echo "% $(executable_tag_uppercase)(1) $(executable_tag) $(linphone_desktop_version) | kimi documentation" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "% Kimi" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "% $(manpage_date)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# NAME" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "$(executable_tag) - SIP softphone (telephone) graphical client with GUI and command line interface (CLI)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# SYNOPSIS" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag)** [*OPTION*]" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag)** *COMMAND*" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# DESCRIPTION" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "Linphone is an audio and video internet phone using the SIP protocol. It goes by the names:" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo " - **$(app_name)** (for laptops, computers, netbooks)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo " - **$(executable)** (for mobile platforms on phones and tablets)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "A SIP client offers the possibility to have a "SIP-telephone-number" similar to an e-mail address, without paying attention to which SIP-softphone the other person has chosen. As long as both softwares use a similar way of conveying audio and video, it will work. In a way, it is similar to how traditional telephony work. Modern communication systems often require the use of a special software to be able to phone each other, meanwhile SIP-clients don't require anything else than a soft-phone that complies with the SIP protocol to be able to be understood by all the other SIP-soft-phones out there." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
if [ "$$RELEASE" = "$$YES" ]; then \
echo "Release:"; \
echo "**$(executable_tag)** is a release version of Linphone." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md; \
else \
echo "Alpha or beta versions:"; \
echo "**$(executable_tag)** is a $(linphone_desktop_alphabeta) version of Linphone. A $(linphone_desktop_alphabeta) version is often quite stable. A $(linphone_desktop_alphabeta) version usually contains bugs, but usually there is a workaround. A workaround is a bypass of a recognized problem or limitation in a system or policy. A workaround is a temporary fix that implies that a genuine solution to the problem is needed. But workarounds are frequently as creative as true solutions, involving outside the box thinking in their creation." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md; \
fi
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag)** is IP softphone (telephone) graphical client with GUI and command line interface (CLI) using the Session Initiation Protocol (SIP) protocol. SIP is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that include voice, video and messaging applications. SIP is used for signaling and controlling multimedia communication sessions in applications of Internet telephony for voice and video calls, in private IP telephone systems, in instant messaging over Internet Protocol (IP) networks as well as mobile phone calling over LTE (VoLTE). Running **$(executable_tag)** without any command line parameters causes **$(executable_tag)** to launch the app(lication) graphical user interface (GUI). GUI is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces in a terminal (tilix, gnome-termina, xterm etc.), typed command labels or text navigation. GUIs were introduced in reaction to the perceived steep learning curve of command-line interfaces (CLIs), which require commands to be typed on a computer keyboard into a terminal window. A terminal window is the "heart" of a computer system." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "The main features of **$(executable_tag)** are:" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- a nice graphical interface;" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- it includes a large variety of codecs with different quality / bandwidths;" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- it uses the well-known and standardised SIP protocol." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**Signaling features :**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Digest and TLS client certificate authentication" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Multiple call management: hold, resume, transfer and more" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Multiple SIP proxy support: registrar, proxies, outbound proxies" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Presence using list subscription to presence server" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- DTMF (telephone tones)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Interoperability with IMS networks" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Suitable for building a VoLTE-compatible client" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**Media features :**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- HD audio calls with support for Opus codec" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- HD video calls with support for H.264, H.265 and VP8 codecs" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- State-of-the-art adaptive jitter buffer algorithm" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Innovative adaptive bitrate control" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- ICE support for optimised NAT traversal" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- SRTP and ZRTP media encryption" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Audio and video call recording" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**Instant Messaging features :**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- One-to-one and group instant messages" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- Delivery and "is typing" notifications" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- End-to-end encryption for one-to-one and group conversations" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "- File sharing, with configurable settings to automatically / manually download attachments" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag)** uses Qt/QML for the graphical part and bundles the liblinphone SDK version $(linphone_sdk_version) needed to operate." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# OPTIONS" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "The most important commands are:" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**call <sip url>**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": to call someone. A sip url is in the form sip:user@host." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**terminate**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": to terminate a call" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**answer**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": to accept an incoming call." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**help**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": to display interactive help." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "$(linphone_desktop_tag)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# EXAMPLES" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag) help**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag) --cli-help**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag) call sip-address=user@sip.server.org**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag) CALL 'sip-address=user@sip.server.org'**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag) "call sip-address=user@sip.server.org?method=call"**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag) answer**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**$(executable_tag) terminate**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "URI format:" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": **<scheme\>:<address\>?method=<method\>([&<argument\>=<base64-value\>]*)**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "If you want to launch a call to **sip:user@sip.linphone.org**, you can use URI:" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": **sip:user@sip.linphone.org?method=call**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "The command line equivalent is:" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": **$(executable_tag) \"call sip-address=user@sip.linphone.org\"**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": **$(executable_tag) \"CALL sip-address=user@sip.linphone.org\"**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "The full command list can be obtained with:" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": **$(executable_tag) --cli-help**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# EXIT VALUES" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**0**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": Success (unverified)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "**1**" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo ": Error? (unverified)" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# BUGS" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "* Not always possible to initiate xdg-open tel:user@sip.serv.org from command line." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "* Not always possible to initiate xdg-open callto:user@sip.serv.org from command line." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "# COPYRIGHT" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "" >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "Belledonne Communications SARL state GPLv3. Unclear if it means GPL-3.0-only or GPL-3.0-or-later." >> $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "--- End create markup manpage for: $(executable)$(linphone_desktop_tag) ---"
echo "--- Convert markup to groff ---"
pandoc $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md -s -t man -o $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable_tag).1
rm -f $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable)$(linphone_desktop_tag).1.md
echo "--- End convert markup to groff ---"
echo "----------------------------"
echo "--- Copy manpage to the place where the system wants it ---"
cp $(buildroot)$(linphone_desktop_install_man_prefix)/$(executable_tag).1 $(buildroot)$(system_mandir)
echo "Create launcher that tells $(app_name) where to find its libraries (Ubuntu-18)"
echo "Create launcher that tells $(app_name) where to find its libraries"
echo "#!/usr/bin/env bash > $(buildroot)$(system_bindir)/$(executable_tag)"
echo "export LD_LIBRARY_PATH=\$$LD_LIBRARY_PATH:$(linphone_desktop_install_prefix)/lib >> $(buildroot)$(system_bindir)/$(executable_tag)"
echo "$(linphone_desktop_bindir)/$(executable) 'call sip-address=%u' >> $(buildroot)$(system_bindir)/$(executable_tag)"
echo "Make script executable"
echo "chmod +x $(buildroot)$(system_bindir)/$(executable_tag)"
echo "----------------------------"
echo "--- Copy mime info to the place where the system wants it ---"
#export mimeXMLfileName = $(packager_lowercase)-$(app_name)-$(linphone_desktop_alphabeta).xml
#export mimeXMLfullFilePath = $(buildroot)/usr/share/mime/packages/$(mimeXMLfileName)
#export mimeXMLfullInstallToDirPath = $(buildroot)/usr/share/mime/packages
#export mimeLibFileName = $(packager_lowercase)-$(app_name)-$(linphone_desktop_alphabeta)
#export mimeLibFullInstallToDirPath = $(buildroot)/usr/lib/mime/packages
#export mimeLibFullFilePath = $(buildroot)/usr/lib/mime/packages/$(mimeLibFileName)
#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)"
#$(buildroot)/$(system_install_mime_xml_reldir)
mkdir -p -v $(mimeLibFullInstallToDirPath)
echo "x-scheme-handler/tel; $(executable_tag_lowercase) 'call sip-address=%u'; description=Linphone SIP telephone; priority=1" >> $(mimeLibFullFilePath)
echo "x-scheme-handler/callto; $(executable_tag_lowercase) 'call sip-address=%u'; description=Linphone SIP telephone; priority=1" >> $(mimeLibFullFilePath)
echo "x-scheme-handler/sip; $(executable_tag_lowercase) 'call sip-address=%u'; description=Linphone SIP telephone; priority=1" >> $(mimeLibFullFilePath)
echo "x-scheme-handler/sips; $(executable_tag_lowercase) 'call sip-address=%u'; description=Linphone SIP telephone priority=1" >> $(mimeLibFullFilePath)
echo "x-scheme-handler/sip-linphone; $(executable_tag_lowercase) 'call sip-address=%u'; description=Linphone SIP telephone; priority=1" >> $(mimeLibFullFilePath)
echo "x-scheme-handler/sips-linphone; $(executable_tag_lowercase) 'call sip-address=%u'; description=Linphone SIP telephone; priority=1" >> $(mimeLibFullFilePath)
echo "x-scheme-handler/linphone-config; $(executable_tag_lowercase) --config %u; description=Linphone SIP telephone; priority=1" >> $(mimeLibFullFilePath)
echo \$(buildroot)/usr/share/mime/packages
echo $(buildroot)/usr/share/mime/packages
echo \$(buildroot)/usr/share/mime/packages/\$(deb_name).xml
echo $(buildroot)/usr/share/mime/packages/$(deb_name).xml
echo "Copy from: $(buildroot)/usr/lib/mime/packages"
echo "Copy to: $(buildroot)/usr/lib/mime/packages"
find /usr/src/packages/SOURCES -maxdepth 1
mkdir -p -v $(mimeXMLfullInstallToDirPath)
cp -v /usr/src/packages/SOURCES/$(deb_name).xml $(mimeXMLfullInstallToDirPath)
cp -v /usr/src/packages/SOURCES/$(deb_name).xml $(buildroot)$(linphone_desktop_install_prefix)/share/mime/packages
find $(mimeXMLfullInstallToDirPath) -maxdepth 1
echo "--- Make links ---"
echo "--- Make link to $(executable) ---"
echo "Make link to executable if not using a launcher"
echo "LINK=$(buildroot)$(system_bindir)/$(executable_tag)"
echo "TARGET=$(buildroot)$(linphone_desktop_install_prefix)/$(executable)"
dh_link $(linphone_desktop_bin_reldir)/$(executable) $(linphone_desktop_install_scripts_reldir)/$(executable_tag)
echo "--- Make link to uninstall-$(executable) ---"
echo "LINK=$(linkRelPathOne)"
echo "TARGET=$(scriptRelFilePathOne)"
dh_link $(scriptRelFilePathOne) $(linkRelPathOne)
echo "--- Make link to change-$(executable_tag)-icon ---"
echo "LINK=$(linkRelPathTwo)"
echo "TARGET=$(scriptRelFilePathTwo)"
dh_link $(scriptRelFilePathTwo) $(linkRelPathTwo)
echo "--- Make link to auto-start-$(executable) ---"
echo "LINK=$(linkRelPathThree)"
echo "TARGET=$(scriptRelFilePathThree)"
dh_link $(scriptRelFilePathThree) $(linkRelPathThree)
echo "--- Make link to auto-start-$(executable_tag)-remove ---"
echo "LINK=$(linkRelPathFour)"
echo "TARGET=$(scriptRelFilePathFour)"
dh_link $(scriptRelFilePathFour) $(linkRelPathFour)
echo "--- Make link to pre-uninstall-$(executable) ---"
echo "LINK=$(linkRelPathFive)"
echo "TARGET=$(scriptRelFilePathFive)"
dh_link $(scriptRelFilePathFive) $(linkRelPathFive)
echo "--- Make link to set-$(executable)-xdg-open-gio-mime ---"
echo "LINK=$(linkRelPathSix)"
echo "TARGET=$(scriptRelFilePathSix)"
dh_link $(scriptRelFilePathSix) $(linkRelPathSix)
echo "--- Make link to fix-$(executable)-xdg-open-sip-sips-tel-callto ---"
echo "LINK=$(linkRelPathSeven)"
echo "TARGET=$(scriptRelFilePathSeven)"
dh_link $(scriptRelFilePathSeven) $(linkRelPathSeven)
echo "--- End make links ---"
# Remove certificate
#rm -f $(buildroot)$(linphone_desktop_install_prefix)/share/linphone/rootca.pem
# Issue with Ubuntu, Archlinux, openSUSE, Fedora which cannot find libraries.
# Solution:
# https://stackoverflow.com/questions/12045563/cannot-load-shared-library-that-exists-in-usr-local-lib-fedora-x64
# Remember to delete the file during uninstall
# Remember to include /etc/ld.so.conf.d/*.conf file in debian.tar.xz install files
# Add path to /etc/ld.so.conf or /etc/ld.so.conf.d/linphone.conf
mkdir -pv $(buildroot)/etc/ld.so.conf.d
echo "$(linphone_desktop_install_prefix)/lib" > $(buildroot)/etc/ld.so.conf.d/$(deb_name)$(linphone_desktop_condensed_tag).conf
# Remove libxml2.so libxml2.so.2. to avoid crashing other software.
# Use system libxml: https://pkgs.org/search/?q=libxml
# Probably already installed on the system.
rm -f $(buildroot)$(linphone_desktop_install_prefix)/lib/libxml2.so
rm -f $(buildroot)$(linphone_desktop_install_prefix)/lib/libxml2.so.*
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 "--- Fixes that need to be properly fixed in the code ---"
rm -rf $(buildroot)/usr/local/bin/share
echo "--- End install: ---"
echo "--- Exiting section override_dh_autoinstall: ---"
echo "--- $(deb_name) should now be ready for packaging ---"
override_dh_installman:
override_dh_usrlocal:
clean:
dh_autoreconf_clean
dh_clean