2020-12-24 17:33:31 +00:00
|
|
|
# Maintainer: Jiachen YANG <farseerfc at archlinux dot org>
|
2021-10-13 03:09:53 +00:00
|
|
|
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
|
2020-12-24 17:33:31 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable neon (-DTG_OWT_ARCH_ARMV7_USE_NEON=OFF)
|
|
|
|
|
|
|
|
pkgname=libtg_owt
|
2021-10-31 18:51:15 +00:00
|
|
|
_commit=d578c76
|
|
|
|
pkgver=0.git8.${_commit}
|
|
|
|
pkgrel=1
|
2021-10-13 03:09:53 +00:00
|
|
|
pkgdesc='WebRTC library'
|
2020-12-24 17:33:31 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
url='https://github.com/desktop-app/tg_owt'
|
2021-10-13 03:09:53 +00:00
|
|
|
license=('BSD')
|
|
|
|
depends=('protobuf' 'libxrandr' 'libxcomposite' 'openssl' 'glibc' 'ffmpeg' 'libva' 'opus' 'yasm' 'libjpeg-turbo' 'pipewire' 'libxtst')
|
|
|
|
makedepends=('git' 'ninja' 'unzip' 'cmake')
|
2020-12-24 17:33:31 +00:00
|
|
|
source=("tg_owt::git+${url}.git#commit=${_commit}"
|
|
|
|
"libvpx::git+https://chromium.googlesource.com/webm/libvpx.git"
|
2021-06-28 04:50:31 +00:00
|
|
|
"libyuv::git+https://chromium.googlesource.com/libyuv/libyuv.git"
|
2021-08-04 22:42:51 +00:00
|
|
|
"pipewire::git+https://github.com/PipeWire/pipewire.git")
|
2020-12-24 17:33:31 +00:00
|
|
|
b2sums=('SKIP'
|
2021-06-28 04:50:31 +00:00
|
|
|
'SKIP'
|
2020-12-24 17:33:31 +00:00
|
|
|
'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
|
2021-06-28 04:50:31 +00:00
|
|
|
git config submodule.src/third_party/pipewire.url "$srcdir"/pipewire
|
2020-12-24 17:33:31 +00:00
|
|
|
git submodule update
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd tg_owt
|
2021-08-04 22:42:51 +00:00
|
|
|
cmake \
|
|
|
|
-B build \
|
|
|
|
-G Ninja \
|
2020-12-24 17:33:31 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2021-08-04 22:42:51 +00:00
|
|
|
-DTG_OWT_ARCH_ARMV7_USE_NEON=OFF
|
|
|
|
ninja -C build
|
2020-12-24 17:33:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-08-04 22:42:51 +00:00
|
|
|
cd tg_owt
|
|
|
|
DESTDIR="${pkgdir}/" ninja -C build install
|
2021-10-31 18:51:15 +00:00
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
2020-12-24 17:33:31 +00:00
|
|
|
}
|