void-packages/srcpkgs/linphone-desktop/template

43 lines
1.8 KiB
Bash

# Template file for 'linphone-desktop'
pkgname=linphone-desktop
version=4.2.1
revision=2
build_wrksrc="linphone-app" # The root cmake is glue code for their vendored libs
build_style=cmake
configure_args="-DCMAKE_INSTALL_RPATH=OFF"
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"
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=a9c520851ec40ebd6bc28b5ebc0e4d2b5f62ef3b53e5d60bb241c0b2bd56ad62
replaces="linphone-gui>=0"
CFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
CXXFLAGS="-DLINPHONE_QT_GIT_VERSION=\\\"$version\\\""
patch_args=-Np0
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/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
}