[arch-commits] Commit in libtg_owt/repos (2 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Mar 19 13:00:36 UTC 2021


    Date: Friday, March 19, 2021 @ 13:00:26
  Author: svenstaro
Revision: 894568

archrelease: copy trunk to community-staging-x86_64

Added:
  libtg_owt/repos/community-staging-x86_64/
  libtg_owt/repos/community-staging-x86_64/PKGBUILD
    (from rev 894567, libtg_owt/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: libtg_owt/repos/community-staging-x86_64/PKGBUILD (from rev 894567, libtg_owt/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-03-19 13:00:26 UTC (rev 894568)
@@ -0,0 +1,50 @@
+# Maintainer: Jiachen YANG <farseerfc at archlinux dot org>
+
+pkgname=libtg_owt
+_commit=7f96571
+pkgver=0.git3.${_commit}
+pkgrel=1
+pkgdesc='WebRTC library - static linked'
+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')
+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")
+b2sums=('SKIP'
+        'SKIP'
+        'SKIP')
+replaces=('libwebrtc')
+
+prepare() {
+  cd tg_owt
+  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 submodule update
+}
+
+build() {
+  cd tg_owt
+  mkdir build
+  cd build
+  # path to openssl include is intentionally wrong, so that it will not mess up srtp include headers
+  cmake -G Ninja \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DTG_OWT_SPECIAL_TARGET=linux \
+    -DTG_OWT_LIBJPEG_INCLUDE_PATH=/usr/include \
+    -DTG_OWT_OPENSSL_INCLUDE_PATH=/usr/include \
+    -DTG_OWT_OPUS_INCLUDE_PATH=/usr/include/opus \
+    -DTG_OWT_FFMPEG_INCLUDE_PATH=/usr/include \
+    ..
+  ninja
+}
+
+package() {
+  cd tg_owt/build
+  DESTDIR="${pkgdir}/" ninja install
+}



More information about the arch-commits mailing list