[arch-commits] Commit in libtg_owt/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at gemini.archlinux.org
Mon Dec 13 17:05:36 UTC 2021
Date: Monday, December 13, 2021 @ 17:05:35
Author: svenstaro
Revision: 1071974
upgpkg: libtg_owt 0.git9.d5c3d43-3: Build static lib instead of shared libs
Upstream only officially supports static builds for this so that's what we'll be using.
It doesn't really matter anyway as telegram-desktop is only ever going to be the only
consumer of this for the foreseeable future.
Modified:
libtg_owt/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-13 17:04:56 UTC (rev 1071973)
+++ PKGBUILD 2021-12-13 17:05:35 UTC (rev 1071974)
@@ -4,13 +4,14 @@
pkgname=libtg_owt
_commit=d5c3d43
pkgver=0.git9.${_commit}
-pkgrel=2
+pkgrel=3
pkgdesc='WebRTC library'
arch=('x86_64')
url='https://github.com/desktop-app/tg_owt'
license=('BSD')
-depends=('protobuf' 'libxrandr' 'libxcomposite' 'openssl' 'glibc' 'ffmpeg' 'libva' 'opus' 'yasm' 'libjpeg-turbo' 'pipewire' 'libxtst' 'abseil-cpp')
-makedepends=('git' 'ninja' 'unzip' 'cmake')
+makedepends=('git' 'ninja' 'unzip' 'cmake' 'protobuf' 'libxrandr' 'libxcomposite' 'openssl' 'glibc'
+ 'ffmpeg' 'libva' 'opus' 'yasm' 'libjpeg-turbo' 'pipewire' 'libxtst' 'abseil-cpp')
+options=('staticlibs')
source=("tg_owt::git+${url}.git#commit=${_commit}"
"libvpx::git+https://chromium.googlesource.com/webm/libvpx.git"
"libyuv::git+https://chromium.googlesource.com/libyuv/libyuv.git"
@@ -19,7 +20,6 @@
'SKIP'
'SKIP'
'SKIP')
-replaces=('libwebrtc')
prepare() {
cd tg_owt
@@ -32,11 +32,15 @@
build() {
cd tg_owt
+
+ # Upstream stated that only static builds are really supported so that's what we'll do.
+ # https://github.com/desktop-app/tg_owt/issues/75#issuecomment-992061171
cmake \
-B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=OFF
ninja -C build
}
More information about the arch-commits
mailing list