void-packages/srcpkgs/linphone-desktop/template

42 lines
1.8 KiB
Bash

# Template file for 'linphone-desktop'
pkgname=linphone-desktop
version=4.4.1
revision=1
build_wrksrc="linphone-app" # The root cmake is glue code for their vendored libs
build_style=cmake
hostmakedepends="qt5-qmake qt5-host-tools qt5-declarative"
makedepends="bctoolbox-devel belcard-devel belle-sip-devel linphone-devel
mediastreamer-devel qt5-declarative-devel qt5-quickcontrols2-devel
qt5-svg-devel qt5-tools-devel qt5-webview-devel"
depends="qt5>=5.9_1 qt5-quickcontrols qt5-quickcontrols2 qt5-graphicaleffects"
short_desc="Linphone qt desktop"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://www.linphone.org/"
distfiles="https://gitlab.linphone.org/BC/public/linphone-desktop/-/archive/${version}/linphone-desktop-${version}.tar.gz"
checksum=589e8ccc82e64fb1b7dbdc70b841240e02686079896d02bbe7dff782cc30bf8f
replaces="linphone-gui>=0"
CFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
CXXFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
linphone-gui_package() {
short_desc+=" - (transitional dummy package)"
depends="linphone-desktop"
build_style=meta
}
# XXX: The cmake install does all kinds of stuff we don't want
do_install() {
vbin build/linphone
vinstall build/libapp-plugin.so 644 usr/lib
vinstall build/linphone.desktop 644 usr/share/applications/
vinstall assets/images/linphone_logo.svg 644 usr/share/icons/hicolor/scalable/apps/ linphone.svg
vinstall assets/linphonerc-factory 644 usr/share/linphone/
vinstall assets/assistant/create-app-sip-account.rc 644 usr/share/linphone/assistant
vinstall assets/assistant/use-app-sip-account.rc 644 usr/share/linphone/assistant
vinstall assets/assistant/use-other-sip-account.rc 644 usr/share/linphone/assistant
for s in 16x16 22x22 24x24 32x32 64x64 128x128 256x256; do
vinstall assets/icons/hicolor/${s}/apps/icon.png 644 usr/share/icons/hicolor/${s}/apps/
done
}