diff options
author | Allen Wild | 2018-11-17 00:58:08 -0500 |
---|---|---|
committer | Allen Wild | 2018-11-17 00:58:08 -0500 |
commit | 462e7af7506abfa2305504bc7ad2849354228d61 (patch) | |
tree | 2888d3e8d0a920006a385a1c18df1640891adf74 | |
parent | 2369dc3f102393fda72b672c257b07877c4e2c1e (diff) | |
download | aur-462e7af7506abfa2305504bc7ad2849354228d61.tar.gz |
update to 1.4.7-1: now includes option to set custom API keys
Telegram now requires that you specify API keys to the build system
rather than defaulting them. This PKGBUILD uses the test keys but you
can set _api_id and _api_hash to your own keys if desired.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 11 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = telegram-desktop-systemqt-notoemoji pkgdesc = Official Telegram Desktop client (with noto emoji) - pkgver = 1.4.4 - pkgrel = 2 + pkgver = 1.4.7 + pkgrel = 1 url = https://desktop.telegram.org/ arch = x86_64 license = GPL3 @@ -21,7 +21,7 @@ pkgbase = telegram-desktop-systemqt-notoemoji optdepends = libnotify: desktop notifications provides = telegram-desktop conflicts = telegram-desktop - source = tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#tag=v1.4.4 + source = tdesktop::git+https://github.com/telegramdesktop/tdesktop.git#tag=v1.4.7 source = libtgvoip::git+https://github.com/telegramdesktop/libtgvoip source = variant::git+https://github.com/mapbox/variant source = Catch::git+https://github.com/philsquared/Catch @@ -5,9 +5,14 @@ # Thanks Nicholas Guriev <guriev-ns@ya.ru> for the patches! # https://github.com/mymedia2/tdesktop +# Telegram API credentials. The defaults below are Telegram's test keys. +# You may use you your own here for better API performance +_api_id='17349' +_api_hash='344583e45741c457fe1862106095a5eb' + pkgname=telegram-desktop-systemqt-notoemoji -pkgver=1.4.4 -pkgrel=2 +pkgver=1.4.7 +pkgrel=1 pkgdesc='Official Telegram Desktop client (with noto emoji)' arch=('x86_64') url="https://desktop.telegram.org/" @@ -83,6 +88,7 @@ build() { export CXXFLAGS="$CXXFLAGS $EXTRA_FLAGS" gyp \ -Dbuild_defines=${GYP_DEFINES} \ + -Dapi_id=${_api_id} -Dapi_hash=${_api_hash} \ -Gconfig=Release \ --depth=Telegram/gyp --generator-output=../.. -Goutput_dir=out Telegram/gyp/Telegram.gyp --format=cmake NUM=$((`wc -l < out/Release/CMakeLists.txt` - 2)) |