summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Natalenko2017-12-24 16:00:22 +0100
committerOleksandr Natalenko2017-12-24 16:00:22 +0100
commitd1da6d3180d8c3af4b70c3765d0a4fa98bfbfbf4 (patch)
treeaa053b3eaa3a16a97374a41d233f162669df2a6a
downloadaur-d1da6d3180d8c3af4b70c3765d0a4fa98bfbfbf4.tar.gz
initial submission
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD50
-rwxr-xr-xmicrosip24
-rw-r--r--microsip.desktop12
4 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0b9a9517738
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Sun Dec 24 14:58:57 UTC 2017
+pkgbase = microsip
+ pkgdesc = Open source portable SIP softphone for Windows based on PJSIP stack
+ pkgver = 3.16.7
+ pkgrel = 1
+ url = https://www.microsip.org/
+ arch = x86_64
+ license = GPLv2
+ makedepends = icoutils
+ makedepends = imagemagick
+ depends = wine
+ depends = lib32-libpulse
+ source = MicroSIP-3.16.7.zip::https://www.microsip.org/downloads/?file=MicroSIP-3.16.7.zip
+ source = microsip
+ source = microsip.desktop
+ sha256sums = a68cf6b1e49e24c1ad808e98b90e129a0280f57af4602b752b76b88621ea313c
+ sha256sums = d5c0b52d883524a2ba295864956471055298244618e2cde37727b8c5fd911f53
+ sha256sums = d588c2b2e38e12d2be3dfdd9f2a63690293b884c7df240c441e271725b9a2ca2
+
+pkgname = microsip
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..341553a7619
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Oleksandr Natalenko <oleksandr@natalenko.name>
+pkgname=microsip
+pkgver=3.16.7
+pkgrel=1
+pkgdesc="Open source portable SIP softphone for Windows based on PJSIP stack"
+arch=('x86_64')
+url="https://www.microsip.org/"
+license=('GPLv2')
+depends=('wine' 'lib32-libpulse')
+makedepends=('icoutils' 'imagemagick')
+
+source=("MicroSIP-${pkgver}.zip"::"https://www.microsip.org/downloads/?file=MicroSIP-${pkgver}.zip"
+ "${pkgname}"
+ "${pkgname}.desktop")
+
+sha256sums=('a68cf6b1e49e24c1ad808e98b90e129a0280f57af4602b752b76b88621ea313c'
+ 'd5c0b52d883524a2ba295864956471055298244618e2cde37727b8c5fd911f53'
+ 'd588c2b2e38e12d2be3dfdd9f2a63690293b884c7df240c441e271725b9a2ca2')
+
+build() {
+ cd "${srcdir}"
+
+ wrestool -x -t 14 microsip.exe >${pkgname}.ico
+ convert ${pkgname}.ico ${pkgname}.png
+ mv ${pkgname}-0.png ${pkgname}.png
+}
+
+package() {
+ cd "${srcdir}"
+
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "License.txt"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "MicroSIP Website.url"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "SDL.dll"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "avcodec-57.dll"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "avformat-57.dll"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "avutil-55.dll"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "hangup.wav"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "messagein.wav"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "messageout.wav"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "microsip.exe"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "ringin.wav"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "ringin2.wav"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "ringout.wav"
+ install -Dt "${pkgdir}/usr/lib/${pkgname}" -m0644 "swscale-4.dll"
+
+ install -Dt "${pkgdir}/usr/bin" -m0755 "${pkgname}"
+ install -Dt "${pkgdir}/usr/share/applications" -m0644 "${pkgname}.desktop"
+ install -Dt "${pkgdir}/usr/share/icons/hicolor/48x48/apps" -m0644 "${pkgname}.png"
+}
+
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"
+
diff --git a/microsip.desktop b/microsip.desktop
new file mode 100644
index 00000000000..b4b246880b6
--- /dev/null
+++ b/microsip.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Name=MicroSIP
+Comment=Open source portable SIP softphone for Windows based on PJSIP stack
+Exec=/usr/bin/microsip
+Terminal=false
+Type=Application
+Icon=microsip
+Categories=Network;Telephony;
+StartupNotify=false
+GenericName=
+MimeType=x-scheme-handler/sip;