Skip to content

Instantly share code, notes, and snippets.

@ItachiSan
Last active June 23, 2021 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItachiSan/57b138ce766f8914bc3c8a99e0b53263 to your computer and use it in GitHub Desktop.
Save ItachiSan/57b138ce766f8914bc3c8a99e0b53263 to your computer and use it in GitHub Desktop.
Updates to libtg_owt-git PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index b1b1c8e..1fa9e92 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,30 @@
# Maintainer: Jiachen YANG <farseerfc at archlinux dot org>
+# Contributor: Giovanni 'ItachiSan' Santini <giovannisantini93 at yahoo dot it>
_pkgname=libtg_owt
pkgname=${_pkgname}-git
-pkgver=0.git.r73.d91d618
+pkgver=0.git.r165.f03ef05
pkgrel=1
pkgdesc='WebRTC library - static linked, git version'
arch=('x86_64')
url='https://github.com/desktop-app/tg_owt'
license=('custom:BSD')
depends=('protobuf')
-makedepends=('git' 'ninja' 'unzip' 'cmake' 'libxrandr' 'libxcomposite' 'openssl' 'glibc' 'ffmpeg' 'libva' 'opus' 'yasm' 'libjpeg-turbo')
+makedepends=('git' 'ninja' 'unzip' 'cmake' 'libxrandr' 'libxcomposite' 'openssl' 'glibc' 'ffmpeg' 'libva' 'opus' 'yasm' 'libjpeg-turbo'
+ # makedepends from pipewire
+ meson doxygen xmltoman valgrind libpulse alsa-lib
+ gst-plugins-base rtkit dbus sdl2 ncurses libsndfile bluez-libs sbc
+ libldac libopenaptx libfdk-aac vulkan-headers vulkan-icd-loader
+ avahi webrtc-audio-processing
+ # missing deps
+ libxtst)
options=('staticlibs')
source=("tg_owt::git+${url}.git"
"libvpx::git+https://chromium.googlesource.com/webm/libvpx.git"
- "libyuv::git+https://chromium.googlesource.com/libyuv/libyuv.git")
+ "libyuv::git+https://chromium.googlesource.com/libyuv/libyuv.git"
+ "pipewire::git+https://github.com/PipeWire/pipewire.git")
b2sums=('SKIP'
+ 'SKIP'
'SKIP'
'SKIP')
provides=('libtg_owt')
@@ -30,12 +40,17 @@ prepare() {
git submodule init
git config submodule.src/third_party/libvpx/source/libvpx.url "$srcdir"/libvpx
git config submodule.src/third_party/libyuv.url "$srcdir"/libyuv
+ git config submodule.src/third_party/pipewire.url "$srcdir"/pipewire
git submodule update
+
+ # We have errors if there is no "pipewire/version.h"
+ cd src/third_party/pipewire
+ arch-meson build -D jack=disabled -D libcamera=disabled
}
build() {
cd tg_owt
- mkdir build
+ mkdir -p build
cd build
# path to openssl include is intentionally wrong, so that it will not mess up srtp include headers
cmake -G Ninja \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment