community/libtg_owt to 0.git8.d578c76-3

This commit is contained in:
Kevin Mihelich 2021-12-13 19:09:24 +00:00
parent 50647dde77
commit e3fcb75d02

View file

@ -7,13 +7,14 @@
pkgname=libtg_owt
_commit=d578c76
pkgver=0.git8.${_commit}
pkgrel=1
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')
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"
@ -22,7 +23,6 @@ b2sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
replaces=('libwebrtc')
prepare() {
cd tg_owt
@ -35,11 +35,15 @@ prepare() {
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 \
-DBUILD_SHARED_LIBS=OFF \
-DTG_OWT_ARCH_ARMV7_USE_NEON=OFF
ninja -C build
}