35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Template file for 'tg_owt'
|
|
pkgname=tg_owt
|
|
version=0.0.0.1
|
|
revision=2
|
|
_commit=756fd0fb5f40ffb4244c675208e84de781f766f3
|
|
_libvpx_commit=5b63f0f821e94f8072eb483014cfc33b05978bb9
|
|
_libyuv_commit=ad890067f661dc747a975bc55ba3767fe30d4452
|
|
wrksrc="tg_owt-$_commit"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS=OFF"
|
|
hostmakedepends="pkg-config yasm protobuf"
|
|
makedepends="alsa-lib-devel pulseaudio-devel openssl-devel opus-devel
|
|
libvpx-devel ffmpeg-devel libjpeg-turbo-devel protobuf-devel"
|
|
depends="$makedepends"
|
|
short_desc="WebRTC library for Telegram-desktop"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
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"
|
|
checksum="@43d09b00a43f9206b1f04c6d6697f4b0cb3be0285100bf5df91144b1d689c89a
|
|
@1dd51820852df840c339bf3f18e6cf1166de33d5631a69cd1eae5b2b34c113e3"
|
|
skip_extraction="${_libvpx_commit}.tar.gz ${_libyuv_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
|
|
}
|