summarylogtreecommitdiffstats
path: root/microsip
diff options
context:
space:
mode:
authorOleksandr Natalenko2020-08-04 18:17:43 +0200
committerOleksandr Natalenko2020-08-04 18:17:43 +0200
commite4220382dfbe174539d94d425fe29da30ad06bfa (patch)
tree03631cfb6f2d16ae642714ffea2216807ce17182 /microsip
parent95a17e7e09108d4a83453e932462660f37db5791 (diff)
downloadaur-e4220382dfbe174539d94d425fe29da30ad06bfa.tar.gz
bump to v3.20.0
Signed-off-by: Oleksandr Natalenko <oleksandr@redhat.com>
Diffstat (limited to 'microsip')
-rwxr-xr-xmicrosip70
1 files changed, 0 insertions, 70 deletions
diff --git a/microsip b/microsip
deleted file mode 100755
index 500c5bf7e63..00000000000
--- a/microsip
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/usr/bin/env bash
-
-__REV=3
-__APPNAME=$(basename $0)
-__WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local}/wine/${__APPNAME}"
-__WINEARCH="win32"
-__APPDIR="${__WINEPREFIX}/dosdevices/c:/${__APPNAME}"
-__INSTALLED="${__APPDIR}/.installed.${__REV}"
-__APPCFG="${XDG_CONFIG_HOME:-$HOME/.config}/${__APPNAME}"
-__APPLOG="${XDG_CACHE_HOME:-$HOME/.cache}/${__APPNAME}"
-__REGFILE="${__APPDIR}/${__APPNAME}.reg"
-__TMPREGFILE=$(mktemp)
-__DPI=$(xdpyinfo -display $DISPLAY | grep -A 2 "screen #0:" | grep "resolution:" | grep -oE '[0-9]+x[0-9]+' | cut -d 'x' -f 1)
-__DPIX=$(printf %08x ${__DPI})
-
-# force 32-bit prefix
-__QUIRK1="${__APPDIR}/.quirk.1"
-
-__symlink() {
- ln -sf "$1" "${__APPDIR}/${1##*/}"
-}
-
-if [[ -d "${__WINEPREFIX}" ]] && [[ ! -f "${__QUIRK1}" ]]; then
- rm -rf "${__WINEPREFIX}"
-fi
-
-if [[ ! -f "${__INSTALLED}" ]]; then
- mkdir -p "${__WINEPREFIX}"
- WINEPREFIX="${__WINEPREFIX}" WINEARCH="${__WINEARCH}" wineboot -u
-
- mkdir -p "${__APPDIR}"
-
- cp "/usr/share/${__APPNAME}/${__APPNAME}.reg" "${__TMPREGFILE}"
- sed -i "s/{DPI}/${__DPIX}/g" "${__TMPREGFILE}"
- iconv -f utf-8 -t utf-16le "${__TMPREGFILE}" >"${__REGFILE}"
- rm -f "${__TMPREGFILE}"
- WINEPREFIX="${__WINEPREFIX}" WINEARCH="${__WINEARCH}" regedit "${__REGFILE}"
- rm -f "${__REGFILE}"
-
- __symlink "/usr/share/licenses/${__APPNAME}/License.txt"
- __symlink "/usr/share/doc/${__APPNAME}/MicroSIP Website.url"
- __symlink "/usr/share/${__APPNAME}/hangup.wav"
- __symlink "/usr/share/${__APPNAME}/msgin.wav"
- __symlink "/usr/share/${__APPNAME}/msgout.wav"
- __symlink "/usr/share/${__APPNAME}/ringing.wav"
- __symlink "/usr/share/${__APPNAME}/ringing2.wav"
- __symlink "/usr/share/${__APPNAME}/ringtone.wav"
- __symlink "/usr/lib/${__APPNAME}/microsip.exe"
- __symlink "/usr/lib/${__APPNAME}/lame_enc.dll"
-
- mkdir -p "${__APPCFG}"
- touch "${__APPCFG}/Contacts.xml"
- touch "${__APPCFG}/microsip.ini"
- __symlink "${__APPCFG}/Contacts.xml"
- __symlink "${__APPCFG}/microsip.ini"
-
- mkdir -p "${__APPLOG}"
- touch "${__APPLOG}/microsip_log.txt"
- __symlink "${__APPLOG}/microsip_log.txt"
-
- touch "${__INSTALLED}"
-fi
-
-if [[ ! -f "${__QUIRK1}" ]]; then
- touch "${__QUIRK1}"
-fi
-
-
-WINEPREFIX="${__WINEPREFIX}" WINEARCH="${__WINEARCH}" wine "${__APPDIR}/microsip.exe"
-