summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18d409496a0e3e09caaa65e223e3936ae3978056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Oleksandr Natalenko <oleksandr@natalenko.name>
pkgname=microsip
pkgver=3.21.4
pkgrel=2
pkgdesc="Open source portable SIP softphone for Windows based on PJSIP stack"
_repouser=post-factum
_reponame=microsip
_wrapperver=1.1
arch=(x86_64)
url="https://www.microsip.org/"
license=(GPL-2.0-or-later)

source=("MicroSIP-Lite-${pkgver}.zip"::"https://www.microsip.org/downloads/?file=MicroSIP-Lite-${pkgver}.zip"
		"${_reponame}-${_wrapperver}.tar.gz"::"https://codeberg.org/${_repouser}/${_reponame}/archive/v${_wrapperver}.tar.gz")

sha256sums=('2745efabac7439c664f0ebd6d92774eaf1f226bbdb356006dd743a380a8d36bd'
            '7ff13e1c93434f1350132aad1b708461ef84e2fe181cade419d0f25e5a9f3510')

package() {
	depends=(wine lib32-libpulse xorg-xdpyinfo)

	install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m0644 License.txt
	install -Dt "${pkgdir}"/usr/share/doc/${pkgname} -m0644 MicroSIP.url
	install -Dt "${pkgdir}"/usr/share/${pkgname} -m0644 hangup.wav
	install -Dt "${pkgdir}"/usr/share/${pkgname} -m0644 msgin.wav
	install -Dt "${pkgdir}"/usr/share/${pkgname} -m0644 msgout.wav
	install -Dt "${pkgdir}"/usr/share/${pkgname} -m0644 ringing.wav
	install -Dt "${pkgdir}"/usr/share/${pkgname} -m0644 ringing2.wav
	install -Dt "${pkgdir}"/usr/share/${pkgname} -m0644 ringtone.wav
	install -Dt "${pkgdir}"/usr/lib/${pkgname} -m0644 lame_enc.dll

	install -Dt "${pkgdir}"/usr/lib/${pkgname} -m0644 microsip.exe

	install -Dt "${pkgdir}"/usr/bin -m0755 ${_reponame}/${pkgname}
	install -Dt "${pkgdir}"/usr/share/${pkgname} -m0644 ${_reponame}/${pkgname}.reg
	install -Dt "${pkgdir}"/usr/share/applications -m0644 ${_reponame}/${pkgname}.desktop
	install -Dt "${pkgdir}"/usr/share/icons/hicolor/256x256/apps -m0644 ${_reponame}/${pkgname}.png
}