-
-
Save mc-suchecki/b995ce2a0f209724d3b9610c0b8b0fab to your computer and use it in GitHub Desktop.
PKGBUILD for arch telegram-desktop-bin repository, Telegram Version 1.0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Giovanni Santini "ItachiSan" <giovannisantini93@yahoo.it> | |
# Previous maintainer: agnotek <agnostic.sn [at]gmail.com> | |
# Contributor: agnotek <agnostic.sn [at]gmail.com> | |
pkgname=telegram-desktop-bin | |
pkgver=1.0.0 | |
pkgrel=1 | |
pkgdesc="Official desktop version of Telegram messaging app - Static binaries" | |
arch=('i686' 'x86_64') | |
url="https://desktop.telegram.org" | |
license=('GPL3') | |
depends=( | |
'glib2' | |
'hicolor-icon-theme' | |
'libdbus' | |
'libx11' | |
) | |
optdepends=( | |
'libappindicator-gtk2: to hide Telegram in the tray bar (GTK2-based desktop environment)' | |
'libappindicator-gtk3: to hide Telegram in the tray bar (GTK3-based desktop environment)' | |
'libappindicator-sharp: to hide Telegram in the tray bar (Unity-based desktop environment)' | |
) | |
conflicts=('telegram-desktop') | |
provides=('telegram-desktop') | |
replaces=('telegram-bin') | |
# Sources | |
source=( | |
"$pkgname.desktop" | |
"$pkgname.png" | |
tg.protocol | |
https://github.com/telegramdesktop/tdesktop/raw/master/Telegram/Resources/art/icon{16,32,48,64,128,256,512}.png | |
) | |
source_i686=('https://updates.tdesktop.com/tlinux32/tsetup32.'$pkgver'.tar.xz') | |
source_x86_64=('https://updates.tdesktop.com/tlinux/tsetup.'$pkgver'.tar.xz') | |
# Checksums | |
sha256sums=('32d1597d67a7ef519367e499fcc978da4cce104e370b3787853446d93b1533d6' | |
'4226167b476a75e844ddf0d429068e7e901bbde516810a7d4ca90f8405c01eef' | |
'd4cdad0d091c7e47811d8a26d55bbee492e7845e968c522e86f120815477e9eb' | |
'fc052d1e28b68761bfb6c30ff012e54a4bba0311fc3fc470c728d028c33e9d9f' | |
'8ae874ada23687c95cbcfe7cfa4cbe1c37f097d9c96e5a836c20109d976a86c7' | |
'57d9c71074a619dbe6c361e49f4bee60b1b8c574d8b223d75e61b3744b660ed1' | |
'10507a1ddc379b00230c6f6e2bd9f94ea0c7caff9cae05335a66b4d10b7571eb' | |
'83e3e8eeecadcb3429704626d4ac80ef61ef4e06ba2c6ca2b105a4a436f33032' | |
'871f2a6d3bd9d657f8379196e51fd3117c1586e0042e9e993ae138f78b2bcd76' | |
'a9eb77ca5a428b32f6e01f62b859cce788c4c9a170dc2cd080800a9de59faa3d') | |
sha256sums_i686=('6ec380faf45c4f0fbcbb1873da92a5ced6539e3abc934a39716a3e3132f87d60') | |
sha256sums_x86_64=('0e1ff315760decd7137de3d87e80b799f879db6950c9944bf48b56066b973c03') | |
# Some installation information | |
install="$pkgname.install" | |
package() { | |
cd "$srcdir/" | |
# Creating needed directories | |
install -dm755 "$pkgdir/usr/bin" | |
install -dm755 "$pkgdir/usr/share/pixmaps/" | |
install -dm755 "$pkgdir/usr/share/applications/" | |
# Program | |
install -Dm755 "$srcdir/Telegram/Telegram" "$pkgdir/usr/bin/telegram-desktop" | |
# Desktop launcher | |
install -Dm755 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/telegram.png" | |
install -Dm755 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/telegramdesktop.desktop" | |
# KDE4 protocol file | |
install -d "$pkgdir/usr/share/kde4/services" | |
install -m644 "$srcdir/tg.protocol" "$pkgdir/usr/share/kde4/services/tg.protocol" | |
# 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 -d "$icon_dir" | |
install -m644 "$srcdir/icon${icon_size}.png" "$icon_dir/telegram-desktop.png" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment