Skip to content

Commit

Permalink
linphone-desktop: fix cross
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnynator committed Jan 29, 2023
1 parent e22d1a4 commit 54788b6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion srcpkgs/linphone-desktop/template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ version=5.0.4
revision=1
build_wrksrc="linphone-app" # The root cmake is glue code for their vendored libs
build_style=cmake
configure_args="-DFULL_VERSION=$version"
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
Expand All @@ -18,6 +17,18 @@ distfiles="https://gitlab.linphone.org/BC/public/linphone-desktop/-/archive/${ve
checksum=0399b32100dd555ab503b0f8856f6a632cd704672805301c7c753b8a1183a445
replaces="linphone-gui>=0"

pre_configure() {
IFS=. read _major _minor _patch <<<"$version"
vsed -e "s/set(FULL_VERSION )/set(FULL_VERSION $version)/g" -i CMakeLists.txt
vsed -e "s/set(version_major )/set(version_major $_major)/g" -i CMakeLists.txt
vsed -e "s/set(version_minor )/set(version_minor $_minor)/g" -i CMakeLists.txt
vsed -e "s/set(version_patch )/set(version_patch $_patch)/g" -i CMakeLists.txt
vsed -e "/bc_compute_full_version/d" -i CMakeLists.txt
vsed -e "/bc_parse_full_version/d" -i CMakeLists.txt
vsed -e "/find_package(bctoolbox CONFIG)/d" -i CMakeLists.txt
vsed -e "/project(/ a find_package(bctoolbox CONFIG)" -i CMakeLists.txt
}

linphone-gui_package() {
short_desc+=" - (transitional dummy package)"
depends="linphone-desktop"
Expand Down

0 comments on commit 54788b6

Please sign in to comment.