blob: d692de91ee79c777e71b6b35a0e96214e5131386 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Daniel Poellmann <aur@<lastname><firstname>.de>
# Contributor: David P. <megver83@parabola.nu>
pkgname=linphone-desktop
pkgver=5.0.18
pkgrel=2
pkgdesc='A free VoIP and video softphone based on the SIP protocol'
arch=(x86_64)
url='http://linphone.org'
license=(GPL)
depends=('qt5-base' 'libxcrypt-compat' 'v4l-utils' 'glew')
makedepends=('git' 'gendesk' 'cmake' 'yasm' 'nasm' 'doxygen' 'perl' 'python-pystache' 'python-six' 'libpulse' 'qt5-base' 'qt5-declarative' 'qt5-quickcontrols2' 'qt5-svg' 'qt5-tools')
source=("git+https://github.com/BelledonneCommunications/linphone-desktop.git#commit=88f05be"
"linphone.png::https://gitlab.linphone.org/BC/public/linphone-desktop/-/raw/8dfd384e3df08b200c8eb382b740da6839961bf0/linphone-app/assets/icons/hicolor/128x128/apps/icon.png"
)
sha512sums=('SKIP'
'd6495cdc022b1e4c92b3641cb70347e7e6b6ef47599004de729e908b4876a12540713ab54b588611c99c8025fb9b33e3392573c85c13f72cdaee8bcf7a73d65d'
)
options=()
build() {
cd "$srcdir/linphone-desktop"
git submodule update --init --recursive
mkdir -p build build/OUTPUT && cd build
cmake .. -DCMAKE_BUILD_PARALLEL_LEVEL=10 -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build . --target install --parallel 10 --config RelWithDebInfo
cd "$srcdir"
gendesk -f -n \
--pkgname="$pkgname" \
--pkgdesc="$pkgdesc" \
--name=Linphone \
--genericname="VoIP Client" \
--categories=Network \
--icon=linphone.png \
--exec=/opt/linphone/bin/linphone \
--terminal=false \
--startupnotify=true \
--comment "Linphone"
}
package() {
mkdir -p "$pkgdir/opt/linphone/"
cp -r "$srcdir/linphone-desktop/build/OUTPUT/." "$pkgdir/opt/linphone/"
mkdir -p "$pkgdir/usr/share/applications/"
install -Dm644 "$srcdir/linphone-desktop.desktop" "$pkgdir/usr/share/applications/"
mkdir -p "$pkgdir/usr/share/pixmaps/"
install -Dm644 "$srcdir/linphone.png" "$pkgdir/usr/share/pixmaps/"
}
|