Date: Sunday, August 1, 2021 @ 22:20:37
  Author: svenstaro
Revision: 992015

upgpkg: libtg_owt 0.git6.91d836d-2: Don't use special target as it's 
discouraged (FS#71542)

Modified:
  libtg_owt/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++-----------------
 1 file changed, 9 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-08-01 22:14:29 UTC (rev 992014)
+++ PKGBUILD    2021-08-01 22:20:37 UTC (rev 992015)
@@ -3,7 +3,7 @@
 pkgname=libtg_owt
 _commit=91d836d
 pkgver=0.git6.${_commit}
-pkgrel=1
+pkgrel=2
 pkgdesc='WebRTC library - static linked'
 arch=('x86_64')
 url='https://github.com/desktop-app/tg_owt'
@@ -14,7 +14,7 @@
 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";
-       "pipewire::git+https://github.com/PipeWire/pipewire.git";)
+        "pipewire::git+https://github.com/PipeWire/pipewire.git";)
 b2sums=('SKIP'
         'SKIP'
         'SKIP'
@@ -32,23 +32,15 @@
 
 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 \
+  cmake \
+    -B build \
+    -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 \
-    -DTG_OWT_DLOPEN_PIPEWIRE=OFF \
-    ..
-  ninja
+    -DCMAKE_INSTALL_PREFIX=/usr
+  ninja -C build
 }
 
 package() {
-  cd tg_owt/build
-  DESTDIR="${pkgdir}/" ninja install
+  cd tg_owt
+  DESTDIR="${pkgdir}/" ninja -C build install
 }

Reply via email to