From 36adee8e40578c135bdabc1b305572217644d5f0 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 9 Dec 2017 13:03:38 +0100 Subject: [PATCH] New package: linphone-desktop-4.1.1 --- .../linphone-desktop/patches/gitVersion.patch | 11 +++++++ .../patches/removeWerror.patch | 33 +++++++++++++++++++ srcpkgs/linphone-desktop/template | 19 +++++++++++ 3 files changed, 63 insertions(+) create mode 100644 srcpkgs/linphone-desktop/patches/gitVersion.patch create mode 100644 srcpkgs/linphone-desktop/patches/removeWerror.patch create mode 100644 srcpkgs/linphone-desktop/template diff --git a/srcpkgs/linphone-desktop/patches/gitVersion.patch b/srcpkgs/linphone-desktop/patches/gitVersion.patch new file mode 100644 index 0000000000..ba8bb635d9 --- /dev/null +++ b/srcpkgs/linphone-desktop/patches/gitVersion.patch @@ -0,0 +1,11 @@ +--- AppController.cpp 2017-12-09 12:49:04.635798497 +0100 ++++ src/app/AppController.cpp 2017-12-09 12:49:34.228799625 +0100 +@@ -30,7 +30,7 @@ + + // Must be unique. Used by `SingleApplication` and `Paths`. + #define APPLICATION_NAME "linphone" +-#define APPLICATION_VERSION LINPHONE_QT_GIT_VERSION ++#define APPLICATION_VERSION "4.1.1" + #define APPLICATION_MINIMAL_QT_VERSION "5.9.0" + + #define DEFAULT_FONT "Noto Sans" diff --git a/srcpkgs/linphone-desktop/patches/removeWerror.patch b/srcpkgs/linphone-desktop/patches/removeWerror.patch new file mode 100644 index 0000000000..bbe41c0254 --- /dev/null +++ b/srcpkgs/linphone-desktop/patches/removeWerror.patch @@ -0,0 +1,33 @@ +--- CMakeLists.txt.bak 2017-12-09 12:42:39.858783833 +0100 ++++ CMakeLists.txt 2017-12-09 12:43:11.262785030 +0100 +@@ -45,30 +45,6 @@ + set(CMAKE_AUTOMOC ON) + set(CMAKE_INCLUDE_CURRENT_DIR ON) + +-if (NOT WIN32) +- check_cxx_compiler_flag("-Wsuggest-override" SUGGEST_OVERRIDE) +- set(CUSTOM_FLAGS "\ +--Wall \ +--Wcast-align \ +--Wconversion \ +--Werror=return-type \ +--Werror=old-style-cast \ +--Wextra \ +--Wfloat-equal \ +--Winit-self \ +--Woverloaded-virtual \ +--Wpointer-arith \ +--Wuninitialized \ +--Wunused \ +-") +- if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") +- set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wlogical-op") +- endif () +- if (SUGGEST_OVERRIDE) +- set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override") +- endif () +-endif () +- + set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -DQT_NO_EXCEPTIONS") + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}") diff --git a/srcpkgs/linphone-desktop/template b/srcpkgs/linphone-desktop/template new file mode 100644 index 0000000000..7469e01709 --- /dev/null +++ b/srcpkgs/linphone-desktop/template @@ -0,0 +1,19 @@ +# Template file for 'linphone-desktop' +pkgname=linphone-desktop +version=4.1.1 +revision=1 +wrksrc="linphoneqt-${version}" +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 " +license="GPL-2.0-or-later" +homepage="https://www.linphone.org/" +distfiles="https://www.linphone.org/releases/sources/linphoneqt/linphoneqt-${version}.tar.gz" +checksum=4a00c0cc2861089f8d3a1d0af1cde8ad4094f23640fb6df483e1814853ce5fbc +replaces="linphone-gui>=0"