blob: 2101021fa2d7416bb00a29a2e8000de6d42e4b43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Maintainer: Giovanni 'ItachiSan' Santini <giovannisantini93@yahoo.it>
# Maintainer: silentnoodle <lonnqvistben at gmail dot com>
# Contributor: agnotek <agnostic.sn [at]gmail.com>
pkgname=telegram-desktop-dev-bin
pkgver=5.7.2
pkgrel=1
# If it is a dev-only version, set this to 1
_dev=0
pkgdesc="Official desktop version of Telegram messaging app - Static binaries, developement version"
# Last i686 beta: 2.1.22
# Checked via: curl -iL https://telegram.org/dl/desktop/linux32?beta=1
arch=(x86_64)
url="https://desktop.telegram.org"
license=(GPL3)
depends=(
desktop-file-utils
glib2
hicolor-icon-theme
libdbus
libx11
)
makedepends=(
chrpath
)
optdepends=(
'libappindicator-gtk2: to hide Telegram in the tray bar in GTK2-based desktop environment'
'libappindicator-gtk3: to hide Telegram in the tray bar in GTK3-based desktop environment'
'xdg-utils: for automatic opening of URLs, files and directories in proper applications'
)
conflicts=(telegram-desktop telegram-desktop-bin)
provides=(telegram-desktop)
# Sources
source=(
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/Telegram/Resources/art/icon16.png
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/Telegram/Resources/art/icon32.png
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/Telegram/Resources/art/icon48.png
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/Telegram/Resources/art/icon64.png
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/Telegram/Resources/art/icon128.png
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/Telegram/Resources/art/icon256.png
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/Telegram/Resources/art/icon512.png
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/lib/xdg/org.telegram.desktop.desktop
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/lib/xdg/org.telegram.desktop.service
https://github.com/telegramdesktop/tdesktop/raw/v${pkgver}/lib/xdg/org.telegram.desktop.metainfo.xml
)
# If this is a dev version
if [ $_dev == 1 ]
then
_devsuffix=".beta"
else
_devsuffix=""
fi
# Select the best one accordingly.
source_x86_64=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tsetup.${pkgver}${_devsuffix}.tar.xz")
#source_x86_64=("https://updates.tdesktop.com/tlinux/tsetup.${pkgver}${_devsuffix}.tar.xz")
# Old 32-bit sources:
#source_i686=('https://updates.tdesktop.com/tlinux32/tsetup32.'${pkgver}${_devsuffix}'.tar.xz')
#source_i686=("https://github.com/telegramdesktop/tdesktop/releases/download/v${pkgver}/tsetup32.${pkgver}${_devsuffix}.tar.xz")
# Checksums
sha256sums=('ea1f36152b143cc2664daef5026656d55be2230ed42d43628e17ef7d2fff718c'
'9e4180c78c895783b4559c5e1a7868a2c9aa30a29969fe5dbe9a4ce4cf5cde6c'
'041b78681a35f07c3c929662fc66b6592c88588dc7297a5394ef7f923f2118e2'
'554dff9f55697d4e8ec69e9aa53678aa5dae3e91aa13adc3b115526d8d51dfc9'
'731431e47a5bc91c697d25c3a54fe7ba004752f5b66e0f282c47588ff7a314e6'
'3fb1400c7dc9bbc3b5cb3ffedcbf4a9b09c53e28b57a7ff33a8a6b9048864090'
'e297771c75bd2f81d637a3234f83568be62092f67d16946be23895fa92fa7119'
'e8b6f20b7c7bc28e813fd439cb41b526999c45f158429f6c6037a1e923ab7dfa'
'3a683f1c5cea4dab752339181a7424add98b4c962efe25b39bbf585cddd2596d'
'2787324967c762aa9002d745fb3083e0f7f55fbf5f92ab9cce7c9d245072a195')
sha256sums_x86_64=('c081f54b3f8ea5b07922f3b18d2cb888094ad3cb19dc6d1fcc09518c839b41f7')
# Some installation information
install="$pkgname.install"
package() {
cd "$srcdir/"
# Program
install -dm755 "$pkgdir/usr/bin"
install -Dm755 "$srcdir/Telegram/Telegram" "$pkgdir/usr/bin/telegram-desktop"
# Remove RPATH informations
chrpath --delete "$pkgdir/usr/bin/telegram-desktop"
# Desktop launcher
install -Dm644 "$srcdir/org.telegram.desktop.desktop" -t "$pkgdir/usr/share/applications/"
# D-BUS activation service
install -Dm644 "$srcdir/org.telegram.desktop.service" -t "$pkgdir/usr/share/dbus-1/services/"
# App metainfo
install -Dm644 "$srcdir/org.telegram.desktop.metainfo.xml" -t "$pkgdir/usr/share/metainfo/"
# Icons
local icon_size icon_dir
for icon_size in 16 32 48 64 128 256 512; do
icon_dir="${pkgdir}/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
install -dm755 "$icon_dir"
install -m644 "$srcdir/icon${icon_size}.png" "$icon_dir/telegram.png"
done
}
|