diff --git a/srcpkgs/telegram-desktop/files/Telegram.cmake b/srcpkgs/telegram-desktop/files/Telegram.cmake index 81ad253c43b..f389bbc2877 100644 --- a/srcpkgs/telegram-desktop/files/Telegram.cmake +++ b/srcpkgs/telegram-desktop/files/Telegram.cmake @@ -130,8 +130,8 @@ file(GLOB_RECURSE SUBDIRS_SOURCE_FILES add_executable(Telegram WIN32 ${QRC_FILES} ${FLAT_SOURCE_FILES} ${SUBDIRS_SOURCE_FILES}) set(TELEGRAM_COMPILE_DEFINITIONS + TDESKTOP_DISABLE_AUTOUPDATE TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION - TDESKTOP_DISABLE_UNITY_INTEGRATION NOMINMAX __STDC_FORMAT_MACROS ) diff --git a/srcpkgs/telegram-desktop/patches/fix-xdg.patch b/srcpkgs/telegram-desktop/patches/fix-xdg.patch index 87bcb1933a4..336f0b548c5 100644 --- a/srcpkgs/telegram-desktop/patches/fix-xdg.patch +++ b/srcpkgs/telegram-desktop/patches/fix-xdg.patch @@ -23,7 +23,7 @@ index 0a80695..550b9f7 100644 Comment=Official desktop version of Telegram messaging app -Exec=telegram-desktop -- %u -Icon=telegram -+Exec=env SESSION_MANAGER= Telegram -externalupdater -- %u ++Exec=env SESSION_MANAGER= Telegram -- %u +Icon=telegram Terminal=false StartupWMClass=TelegramDesktop diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template index 73d4ade7a90..8fdcf551194 100644 --- a/srcpkgs/telegram-desktop/template +++ b/srcpkgs/telegram-desktop/template @@ -1,7 +1,7 @@ # Template file for 'telegram-desktop' pkgname=telegram-desktop version=1.6.1 -revision=1 +revision=2 _libtgvoip_commit=16711e202393ae7e1b160436f4291c5f06a3d375 _GSL_commit=d846fe50a3f0bb7767c7e087a05f4be95f4da0ec _variant_commit=550ac2f159ca883d360c196149b466955c77a573 @@ -36,8 +36,8 @@ checksum="eb092e6752c3802250f54f95af39d2e7c2f346a587caff8e8dc501d91c3de5b4 0f4143814b17d61d09c6a7fb6764ce74756ec14c0aab94cd65758f7b5a6d2928 d24e6d9df2b8aa5739d3b9077c6b0ff0ef4d5ef8acc52c3a57e32893854d8d18" -build_options="clang custom_api_id pulseaudio" -build_options_default="pulseaudio custom_api_id" +build_options="clang pulseaudio" +build_options_default="pulseaudio" CXXFLAGS="-DTDESKTOP_API_ID=209235 -DTDESKTOP_API_HASH=169ee702e1df4b6e66d80311db36cc43" @@ -104,10 +104,6 @@ post_extract() { mkdir -p ${build_wrksrc}/native cp ${FILESDIR}/TelegramCodegenTools.cmake ${build_wrksrc}/native/CMakeLists.txt - mkdir ${wrksrc}/TelegramPrivate - if [ -r "$FILESDIR/custom_api_id.h" ]; then - cp "${FILESDIR}/custom_api_id.h" "${wrksrc}/TelegramPrivate" - fi } pre_configure() {