void-packages/srcpkgs/tg_owt/template
John e992abfee8 tg_owt: rebuild to fix a segfault
I'm not sure what exactly caused it or what causes it,
the segfault did not happen in gdb,
instead telegram just exited normally
2021-08-02 20:04:50 +02:00

40 lines
1.7 KiB
Bash

# Template file for 'tg_owt'
pkgname=tg_owt
version=0.0.0.20210627
revision=2
_commit=91d836dc84a16584c6ac52b36c04c0de504d9c34
_libyuv_commit=ad890067f661dc747a975bc55ba3767fe30d4452
_libvpx_commit=5b63f0f821e94f8072eb483014cfc33b05978bb9
wrksrc="tg_owt-$_commit"
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=OFF -DTG_OWT_ARCH_ARMV7_USE_NEON=OFF"
hostmakedepends="pkg-config yasm protobuf"
makedepends="alsa-lib-devel pulseaudio-devel openssl-devel opus-devel
pipewire-devel ffmpeg-devel libjpeg-turbo-devel protobuf-devel
libevent-devel libXcomposite-devel libXrandr-devel libXdamage-devel
libXrender-devel libglib-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/webm/libvpx/+archive/${_libvpx_commit}.tar.gz
https://chromium.googlesource.com/libyuv/libyuv/+archive/${_libyuv_commit}.tar.gz"
checksum="@7ed013e552aa06a4778cc1d9f4a82340024f5d7866bf910b3a342d3e3264d686
@ea967f58e720be3a8f8105d48fedb983570679c8ced8ffbad48fb673089c7ed9
@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
bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_libvpx_commit}.tar.gz -C ${wrksrc}/src/third_party/libvpx/source/libvpx
}