summarylogtreecommitdiffstats
path: root/microsip
diff options
context:
space:
mode:
authorOleksandr Natalenko2017-12-24 16:00:22 +0100
committerOleksandr Natalenko2017-12-24 16:00:22 +0100
commitd1da6d3180d8c3af4b70c3765d0a4fa98bfbfbf4 (patch)
treeaa053b3eaa3a16a97374a41d233f162669df2a6a /microsip
downloadaur-d1da6d3180d8c3af4b70c3765d0a4fa98bfbfbf4.tar.gz
initial submission
Diffstat (limited to 'microsip')
-rwxr-xr-xmicrosip24
1 files changed, 24 insertions, 0 deletions
diff --git a/microsip b/microsip
new file mode 100755
index 00000000000..8ec1adc5297
--- /dev/null
+++ b/microsip
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+__WINEPREFIX="${HOME}/.config/microsip"
+__APPDIR="${__WINEPREFIX}/dosdevices/c:/Program Files (x86)/microsip"
+
+mkdir -p "${__APPDIR}"
+
+ln -sf "/usr/lib/microsip/License.txt" "${__APPDIR}/License.txt"
+ln -sf "/usr/lib/microsip/MicroSIP Website.url" "${__APPDIR}/MicroSIP Website.url"
+ln -sf "/usr/lib/microsip/SDL.dll" "${__APPDIR}/SDL.dll"
+ln -sf "/usr/lib/microsip/avcodec-57.dll" "${__APPDIR}/avcodec-57.dll"
+ln -sf "/usr/lib/microsip/avformat-57.dll" "${__APPDIR}/avformat-57.dll"
+ln -sf "/usr/lib/microsip/avutil-55.dll" "${__APPDIR}/avutil-55.dll"
+ln -sf "/usr/lib/microsip/hangup.wav" "${__APPDIR}/hangup.wav"
+ln -sf "/usr/lib/microsip/messagein.wav" "${__APPDIR}/messagein.wav"
+ln -sf "/usr/lib/microsip/messageout.wav" "${__APPDIR}/messageout.wav"
+ln -sf "/usr/lib/microsip/microsip.exe" "${__APPDIR}/microsip.exe"
+ln -sf "/usr/lib/microsip/ringin.wav" "${__APPDIR}/ringin.wav"
+ln -sf "/usr/lib/microsip/ringin2.wav" "${__APPDIR}/ringin2.wav"
+ln -sf "/usr/lib/microsip/ringout.wav" "${__APPDIR}/ringout.wav"
+ln -sf "/usr/lib/microsip/swscale-4.dll" "${__APPDIR}/swscale-4.dll"
+
+WINEPREFIX="${__WINEPREFIX}" wine "${__APPDIR}/microsip.exe"
+