summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Natalenko2017-12-24 16:55:58 +0100
committerOleksandr Natalenko2017-12-24 16:55:58 +0100
commit0b6c4ab9fc89440e929609ce2bfa35e0d19d264f (patch)
tree0e27d1a3fbd7031031d9a60750d937b5ec939cf7
parentf4a6d6513322c1ed04e47224307956d17f9f80c1 (diff)
downloadaur-0b6c4ab9fc89440e929609ce2bfa35e0d19d264f.tar.gz
simplify wrapper
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
-rwxr-xr-xmicrosip34
3 files changed, 24 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 04a80f5fb91..e80f061f129 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun Dec 24 15:28:41 UTC 2017
+# Sun Dec 24 15:54:57 UTC 2017
pkgbase = microsip
pkgdesc = Open source portable SIP softphone for Windows based on PJSIP stack
pkgver = 3.16.7
- pkgrel = 2
+ pkgrel = 3
url = https://www.microsip.org/
arch = x86_64
license = GPLv2
@@ -15,7 +15,7 @@ pkgbase = microsip
source = microsip
source = microsip.desktop
sha256sums = a68cf6b1e49e24c1ad808e98b90e129a0280f57af4602b752b76b88621ea313c
- sha256sums = 06e26498b9398c1a1ada387989a36d0e8aa314dec60f714de67541a612440e5c
+ sha256sums = 1789cd581dae8e664a94b9e9eaef5236bf8a3378efa911baa3da2fbe76880de5
sha256sums = d588c2b2e38e12d2be3dfdd9f2a63690293b884c7df240c441e271725b9a2ca2
pkgname = microsip
diff --git a/PKGBUILD b/PKGBUILD
index b0a0be5d956..8775b1aecf9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Oleksandr Natalenko <oleksandr@natalenko.name>
pkgname=microsip
pkgver=3.16.7
-pkgrel=2
+pkgrel=3
pkgdesc="Open source portable SIP softphone for Windows based on PJSIP stack"
arch=('x86_64')
url="https://www.microsip.org/"
@@ -14,7 +14,7 @@ source=("MicroSIP-${pkgver}.zip"::"https://www.microsip.org/downloads/?file=Micr
"${pkgname}.desktop")
sha256sums=('a68cf6b1e49e24c1ad808e98b90e129a0280f57af4602b752b76b88621ea313c'
- '06e26498b9398c1a1ada387989a36d0e8aa314dec60f714de67541a612440e5c'
+ '1789cd581dae8e664a94b9e9eaef5236bf8a3378efa911baa3da2fbe76880de5'
'd588c2b2e38e12d2be3dfdd9f2a63690293b884c7df240c441e271725b9a2ca2')
prepare() {
diff --git a/microsip b/microsip
index c10930b920f..815feb239ff 100755
--- a/microsip
+++ b/microsip
@@ -2,24 +2,28 @@
__APPNAME=$(basename $0)
__WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local}/wine/${__APPNAME}"
-__APPDIR="${__WINEPREFIX}/dosdevices/c:/Program Files (x86)/${__APPNAME}"
+__APPDIR="${__WINEPREFIX}/dosdevices/c:/${__APPNAME}"
+
+__symlink() {
+ ln -sf "$1" "${__APPDIR}/${1##*/}"
+}
mkdir -p "${__APPDIR}"
-ln -sf "/usr/share/licenses/${__APPNAME}/License.txt" "${__APPDIR}/License.txt"
-ln -sf "/usr/share/doc/${__APPNAME}/MicroSIP Website.url" "${__APPDIR}/MicroSIP Website.url"
-ln -sf "/usr/share/${__APPNAME}/hangup.wav" "${__APPDIR}/hangup.wav"
-ln -sf "/usr/share/${__APPNAME}/messagein.wav" "${__APPDIR}/messagein.wav"
-ln -sf "/usr/share/${__APPNAME}/messageout.wav" "${__APPDIR}/messageout.wav"
-ln -sf "/usr/share/${__APPNAME}/ringin.wav" "${__APPDIR}/ringin.wav"
-ln -sf "/usr/share/${__APPNAME}/ringin2.wav" "${__APPDIR}/ringin2.wav"
-ln -sf "/usr/share/${__APPNAME}/ringout.wav" "${__APPDIR}/ringout.wav"
-ln -sf "/usr/lib/${__APPNAME}/SDL.dll" "${__APPDIR}/SDL.dll"
-ln -sf "/usr/lib/${__APPNAME}/avcodec-57.dll" "${__APPDIR}/avcodec-57.dll"
-ln -sf "/usr/lib/${__APPNAME}/avformat-57.dll" "${__APPDIR}/avformat-57.dll"
-ln -sf "/usr/lib/${__APPNAME}/avutil-55.dll" "${__APPDIR}/avutil-55.dll"
-ln -sf "/usr/lib/${__APPNAME}/microsip.exe" "${__APPDIR}/microsip.exe"
-ln -sf "/usr/lib/${__APPNAME}/swscale-4.dll" "${__APPDIR}/swscale-4.dll"
+__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}/messagein.wav"
+__symlink "/usr/share/${__APPNAME}/messageout.wav"
+__symlink "/usr/share/${__APPNAME}/ringin.wav"
+__symlink "/usr/share/${__APPNAME}/ringin2.wav"
+__symlink "/usr/share/${__APPNAME}/ringout.wav"
+__symlink "/usr/lib/${__APPNAME}/SDL.dll"
+__symlink "/usr/lib/${__APPNAME}/avcodec-57.dll"
+__symlink "/usr/lib/${__APPNAME}/avformat-57.dll"
+__symlink "/usr/lib/${__APPNAME}/avutil-55.dll"
+__symlink "/usr/lib/${__APPNAME}/microsip.exe"
+__symlink "/usr/lib/${__APPNAME}/swscale-4.dll"
WINEPREFIX="${__WINEPREFIX}" wine "${__APPDIR}/microsip.exe"