# Template file for 'tg_owt' pkgname=tg_owt version=0.0.0.20241028 revision=1 _commit=8198c4d8b91e22d68eb5c7327fd408e3b6abcc79 _libyuv_commit=04821d1e7d60845525e8db55c7bcd41ef5be9406 _abseil_commit=d7aaad83b488fd62bd51c81ecf16cd938532cc0a _crc32c_commit=21fc8ef30415a635e7351ffa0e5d5367943d4a94 _libsrtp_commit=a566a9cfcd619e8327784aa7cff4a1276dc1e895 build_style=cmake configure_args="-DBUILD_SHARED_LIBS=OFF -DTG_OWT_ARCH_ARMV7_USE_NEON=OFF" hostmakedepends="pkg-config yasm protobuf python3" makedepends="alsa-lib-devel pulseaudio-devel openssl-devel opus-devel pipewire-devel ffmpeg6-devel libjpeg-turbo-devel protobuf-devel libevent-devel libXcomposite-devel libXrandr-devel libXdamage-devel libepoxy-devel libdrm-devel libXrender-devel libglib-devel libgbm-devel libvpx-devel openh264-devel" depends="$makedepends" short_desc="WebRTC library for Telegram-desktop" maintainer="John " license="GPL-3.0-or-later" homepage="https://github.com/desktop-app/tg_owt" distfiles="https://github.com/desktop-app/tg_owt/archive/${_commit}.tar.gz https://chromium.googlesource.com/libyuv/libyuv/+archive/${_libyuv_commit}.tar.gz https://github.com/google/crc32c/archive/${_crc32c_commit}.tar.gz https://github.com/abseil/abseil-cpp/archive/${_abseil_commit}.tar.gz https://github.com/cisco/libsrtp/archive/${_libsrtp_commit}.tar.gz" checksum="@a7b9bf7d86b5f02951849e09c20741de3f0e291610721574e186f538a9acfc9d @81bd2ae522e634cd0e9e25fd7eb4a889f1b0b4aeeb76746df0f0bf3f88dec95c @b359ed4f5fd0321d807fd7301e66399c311c1fe6ab4c6a0f5538587d97ba4a8d @7c5dcee48070141a6bd6887e1a511d0b9c42d03f361155a6ae9185290b02d1fa @012d2e3055921e4a33b839e35acbb0a28b5bdc7146d04d9f217ab3d29b103606" skip_extraction="${_libyuv_commit}.tar.gz ${_crc32c_commit}.tar.gz ${_abseil_commit}.tar.gz ${_libsrtp_commit}.tar.gz" if [ "$XBPS_TARGET_LIBC" = "musl" ]; then makedepends+=" musl-legacy-compat" fi if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then broken="#errors in audio data parsers" fi post_extract() { bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_libyuv_commit}.tar.gz -C ${wrksrc}/src/third_party/libyuv bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_crc32c_commit}.tar.gz --strip-components 1 -C ${wrksrc}/src/third_party/crc32c/src bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_abseil_commit}.tar.gz --strip-components 1 -C ${wrksrc}/src/third_party/abseil-cpp bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_libsrtp_commit}.tar.gz --strip-components 1 -C ${wrksrc}/src/third_party/libsrtp }