parent
0a37bcbe6c
commit
51b7460f63
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'telegram-desktop'
|
||||
pkgname=telegram-desktop
|
||||
version=1.4.3
|
||||
revision=2
|
||||
revision=3
|
||||
_libtgvoip_commit=9b292fdbc84f148f736407176facc920e20592f9
|
||||
_GSL_commit=d846fe50a3f0bb7767c7e087a05f4be95f4da0ec
|
||||
_variant_commit=550ac2f159ca883d360c196149b466955c77a573
|
||||
|
@ -18,7 +18,7 @@ hostmakedepends="pkg-config qt5-qmake qt5-host-tools python"
|
|||
makedepends="alsa-lib-devel ffmpeg-devel gtk+3-devel libappindicator-devel
|
||||
libdbusmenu-glib-devel libopenal-devel minizip-devel opus-devel xxHash-devel
|
||||
$(vopt_if pulseaudio 'pulseaudio-devel') qt5-devel range-v3 libva-devel"
|
||||
depends="qt5-imageformats"
|
||||
depends="qt5-imageformats qt5>=5.11.2<5.11.3"
|
||||
short_desc="Telegram Desktop messaging app"
|
||||
maintainer="John <johnz@posteo.net>"
|
||||
license="GPL-3.0-or-later WITH OpenSSL"
|
||||
|
@ -69,6 +69,17 @@ if [ "$CROSS_BUILD" ]; then
|
|||
fi
|
||||
|
||||
post_extract() {
|
||||
_qt5_dep_ver="${depends#*>=}"
|
||||
_qt5_dep_ver="${_qt5_dep_ver%<*}"
|
||||
_qt5_version="$(xbps-uhelper version qt5)"
|
||||
|
||||
if [[ "${_qt5_version%_*}" != "${_qt5_dep_ver}" ]]; then
|
||||
echo
|
||||
msg_red "Qt5 version doesn't match version listed in \$depends\\n"
|
||||
msg_red "${_qt5_version%_*} does not match ${_qt5_dep_ver}\\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp -rup ${wrksrc}/libtgvoip-${_libtgvoip_commit}/* ${build_wrksrc}/ThirdParty/libtgvoip
|
||||
cp -rup ${wrksrc}/GSL-${_GSL_commit}/* ${build_wrksrc}/ThirdParty/GSL
|
||||
cp -rup ${wrksrc}/variant-${_variant_commit}/* ${build_wrksrc}/ThirdParty/variant
|
||||
|
|
Loading…
Reference in New Issue