The steps below are outdated, but the next section could still be helpful.
-
Get familar with AES.
-
Run
asp checkout telegram-desktop
-
cd
to a directory with PKGBUILD in it -
Place
no_call_btn.patch
in the current directory -
Run the script
old_hash=$(sha512sum tdesktop.patch | cut -f1 -d ' ') cat no_call_btn.patch >> tdesktop.patch new_hash=$(sha512sum tdesktop.patch | cut -f1 -d ' ') sed -i "s/$old_hash/$new_hash/" PKGBUILD
-
Execute
makepkg -si
and wait for about an hour. You can speed up the build process by passing-j4
parameter inmake
andcmake
arguments list or by configuring your/etc/makepkg.conf
(seeMAKEFLAGS
option). -
If you are satisfied with the result, remove leftovers using
makepkg -e --clean
.
In order to preserve custom build of the client, add telegram-desktop
to the section IgnorePkg
in /etc/pacman.conf
.
To keep Telegram Desktop up to date, one need to perform steps like the following:
cd
to the ABS directory tree and executeasp update
.cd
to atelegram-desktop
directory with PKGBUILD in it.- Run
git clean -fd .
to remove all unstaged changes and executegit pull
. cd
totrunk
, download all the prerequisites, and remove all files related to the previouse build withmakepkg -Co
.- Edit manually
$srcdir/src/tdesktop/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp
. ($srcdir
==printf -- '%s/telegram-desktop/\n' $(fgrep BUILDDIR /etc/makepkg.conf | cut -d= -f2)
). - Build the package from modified sources with
makepkg -e
. - If the build process complited without errors, install it:
makepkg -i
. - If you are satisfied with the result, remove leftovers using
rm -rf $srchdir
.