diff options
author | Henning Schild <henning@hennsch.de> | 2018-07-13 19:04:28 +0200 |
---|---|---|
committer | NP-Hardass <NP-Hardass@gentoo.org> | 2018-07-16 01:01:15 -0400 |
commit | ea989a3b275aa2e2b473450178b881626f2d7ac5 (patch) | |
tree | 384a07c3a41c1c2b392906d2e6e5f56abdee9bfc /net-im | |
parent | net-im/telegram-desktop-bin: remove unused DEPEND (diff) | |
download | gentoo-ea989a3b275aa2e2b473450178b881626f2d7ac5.tar.gz gentoo-ea989a3b275aa2e2b473450178b881626f2d7ac5.tar.bz2 gentoo-ea989a3b275aa2e2b473450178b881626f2d7ac5.zip |
net-im/telegram-desktop-bin: bump to 1.3.10 and disable auto-updates
This version bump uses a new upstream feature to tell the binary that it
should not check for updates itself. The ebuild installs the binary to
/usr/lib/ and deploys a wrapper to /usr/bin/.
Closes: https://bugs.gentoo.org/618662
Closes: https://github.com/gentoo/gentoo/pull/9218
Signed-off-by: Henning Schild <henning@hennsch.de>
Signed-off-by: NP-Hardass <NP-Hardass@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/telegram-desktop-bin/Manifest | 3 | ||||
-rw-r--r-- | net-im/telegram-desktop-bin/files/telegram-desktop-bin | 5 | ||||
-rw-r--r-- | net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild | 60 |
3 files changed, 68 insertions, 0 deletions
diff --git a/net-im/telegram-desktop-bin/Manifest b/net-im/telegram-desktop-bin/Manifest index 64482faa1018..9c9b12077929 100644 --- a/net-im/telegram-desktop-bin/Manifest +++ b/net-im/telegram-desktop-bin/Manifest @@ -1,9 +1,12 @@ +DIST tdesktop-1.3.10.tar.gz 17167027 BLAKE2B b1748abbfaa08ab22d26707b1b5be7e31dc804869a5ac5cf91bba823787758cd180d9cc41a96eb12787bf445aa6729d66df3aa4ad9acd338500c72da7725211d SHA512 91833405de4d68c6e791fbe3a6ed45926227bc8f7131ffcd2e048e38f8f74419050745a3a56dee926c708e187d9ae985d2efa564ad16fc75f18b60f48a601011 DIST tdesktop-1.3.7.tar.gz 17056555 BLAKE2B 1ba22af19a5ad346ee3e540ded473128fe3582fb0260164c1bec3b141a94cedf34e2c75dd8601dd79c9832391bff5a59ff95aef60050f74cb36f109ffb8df98e SHA512 f92003335ac53c77ce5d320e0549734feceed6b60121429f167134cc8d16b547bd27ad3c85dcbf0da5f55ac8e1e60f5027c910082afd9f683d8a98cb7ac16d6b DIST tdesktop-1.3.8.tar.gz 17127764 BLAKE2B ff9390803bbddbd939eb3173f89b42f161d06c81f3c4702562318d08ecbcfbcf548eab04b8bd80a6f4d546db2c6d5a20c3bf73d0db9ae8ccdd9f4c88048f8074 SHA512 4cef9a2b379b090f6993e4e391152d7fa02db3863c0758ea04f04bdac219ae96e4e43459a44a2857895264555f7bf93a03a9969b1f9bd194185cc7c6e746549a DIST tdesktop-1.3.9.tar.gz 17133428 BLAKE2B b8a8d0bf6d1ae2a55625284c16347b9f5da0f39bdad594b4ae6a8cfe57dce595da2ed54344a13641b31bbe4035b3b83ab9a1b3bce6880777ebd78c3f631c2e89 SHA512 7d9b908e038179448678eb0d29bb9ca62969674e199b89970bac85383ac839156c528939126413e6675901084a2c7d96a254195ebd1780a0b0816ae063f7c7f1 +DIST tsetup.1.3.10.tar.xz 34424588 BLAKE2B c71fda6091d402809fd6989dc6f79c5d43df15e910b939350406233c143e1c8964e67c116d84844aeb54f4a4d6103962281d013507be91b74c58e094b550d5dc SHA512 432d9177e65a461d64f7ccd48745de09cfb2f8d864ba7bf46949e9edd20a5859fcb26491de9053b4823e429a204215daba7399426daaedccf263ffc671697ffa DIST tsetup.1.3.7.tar.xz 33921540 BLAKE2B 4d309bab164299ff7729f72aed44e21716e8ff1e6c41434fcd3e6c8ce9238891a2b93e4d55e62c6e44846781e755a32258dda36e02351d56357241daede342eb SHA512 c4d1249cb2e1be0e9410ba6d7b5f34f342c420d1b44e6b78736aeb611fa3e11519e4c0dfe2fd6f9a819fea09030d8cf451b2c36fc283fb12e4007b4a29855949 DIST tsetup.1.3.8.tar.xz 34517696 BLAKE2B 2a3350b2bdb05c880e306965566f622aa6cb440cc8fe3b72e8487efe6473b2e769db988766903634a90c78b66bdcbe7893742346e163de3bef4a4611f657397a SHA512 31766007ca47fe8c47fad9cebb95b1cae0db3ddec8bfee6f0108dd5e490790822d2ef4fceff2c24ca8c09483724f43aa8fa3a6cf5cb0e09de2fc26911cb66fb2 DIST tsetup.1.3.9.tar.xz 34532440 BLAKE2B 628597a1f04a676129f7b219fa991f1dcae51f70d95366d0ee6bd0c8c8592e4cd3f7453d01d4f980c760e8541f619e9b7ee79ffc7e66953dbf22739d6d600094 SHA512 e176a0d7fe7cad421ec1e09023c8e99f143fef6c6e7aabb344cff9f62e915c9cc3ea7afe4ab58bfb776d8eb304a6a9c140c622614fa9e7f6ef7ea62bb56cf88b +DIST tsetup32.1.3.10.tar.xz 36904652 BLAKE2B 42904f09d4ce26f6d930028f81b7891dfab5ba7d780eace2e70f92752f69612eed6519ccf2ecb0420bd5bfb9f4c999476899df17abf41eca5d4b666bdb7fea9f SHA512 223db27115723cb011f4709ce39fe99228171986a954984a678065d780894d5845ab9bd90541a9cadc7ca6abd01f123ecd53491cd02c235f78615172f40a7a27 DIST tsetup32.1.3.7.tar.xz 36187736 BLAKE2B 3da383c0067192e523d5b85056acf12085ceea4de6d06135f11c298e1f58ae3b09ffc500fa6cf07b72a186c8c6f6fde592f8a8aaa956ac83f90489c1383a3dd9 SHA512 7b8e3ef29f557af0912ff15cee976b7e244e7367346f1d5b4d6fbdb52941930a8952e0c01f8dc53d4a8c2bd6eb0f1f309b3dbff4b60f8790c204ccaf60565108 DIST tsetup32.1.3.8.tar.xz 37194796 BLAKE2B bfcb48b9f65bc54e1b7c269b500424ec2687c45359aec89da310548d310c5abb9d71547e77a250580f63d077fcb9b477ccd4cd8ae40a4bb4666e216950a3b809 SHA512 cae2c1a6abf2f02515e2ad8df107ab2306c0d1d7d3edf8b04fbee5c2130a0ad4b9e61929fe9b7576dc6d55f42541c2b863c30c1e3aeb186be8c9948334ecdd44 DIST tsetup32.1.3.9.tar.xz 37241464 BLAKE2B e83927531ecda2fdb3181c105b26d320857d9f047bb50ed17b38c8c8686675240c6b0b7acc139e06064746edaf3fc69af8eb6d12ab06dc49642ca39621594a8b SHA512 8d90b4e6568730e304714afd09daa70937784e82c9ad1a84a9808104a7731a3b61101042be3644b8a2d0982b2aac97827a8228bc0c3be311e233183a806ec623 diff --git a/net-im/telegram-desktop-bin/files/telegram-desktop-bin b/net-im/telegram-desktop-bin/files/telegram-desktop-bin new file mode 100644 index 000000000000..3529333838ec --- /dev/null +++ b/net-im/telegram-desktop-bin/files/telegram-desktop-bin @@ -0,0 +1,5 @@ +#!/bin/sh +# this wrapper disables the auto-updater of telegram-desktop +# This program is licensed under the same license as telegram-desktop + +exec /usr/lib/telegram-desktop-bin/bin/telegram-desktop-bin -externalupdater $@ diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild new file mode 100644 index 000000000000..d55f48e2ac53 --- /dev/null +++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-1.3.10.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop gnome2-utils xdg + +DESCRIPTION="Official desktop client for Telegram (binary package)" +HOMEPAGE="https://desktop.telegram.org" +SRC_URI=" + https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz + amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz ) + x86? ( https://updates.tdesktop.com/tlinux32/tsetup32.${PV}.tar.xz ) +" + +LICENSE="telegram" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +QA_PREBUILT="usr/lib/${PN}/bin/${PN}" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/gobject-introspection + >=sys-apps/dbus-1.4.20 + x11-libs/libX11 + >=x11-libs/libxcb-1.10[xkb] +" + +S="${WORKDIR}/Telegram" + +src_install() { + into /usr/lib/${PN} + newbin "${S}/Telegram" ${PN} + into /usr + newbin "${FILESDIR}"/${PN} "telegram-desktop" + + local icon_size + for icon_size in 16 32 48 64 128 256 512; do + newicon -s "${icon_size}" \ + "${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \ + telegram-desktop.png + done + + domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop +} + +pkg_preinst() { + xdg_pkg_preinst +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_icon_cache_update +} |