summaryrefslogtreecommitdiff
path: root/net-im/telegram
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-12-28 19:58:27 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-12-28 19:58:27 +0000
commit30bb4b541d4f6989f69f5a0293500144cc692ca8 (patch)
treea9713334d5b04a13d0b970b14a1157f316d17d20 /net-im/telegram
parent9f55bf904d984c2a44268e167f30ed23f6402a23 (diff)
net-im/telegram : version bump
Diffstat (limited to 'net-im/telegram')
-rw-r--r--net-im/telegram/Manifest4
-rw-r--r--net-im/telegram/files/telegram.pngbin8529 -> 0 bytes
-rw-r--r--net-im/telegram/telegram-0.10.1-r1.ebuild33
-rw-r--r--net-im/telegram/telegram-1.2.1.ebuild57
4 files changed, 59 insertions, 35 deletions
diff --git a/net-im/telegram/Manifest b/net-im/telegram/Manifest
index 0cae2e38..e86165b3 100644
--- a/net-im/telegram/Manifest
+++ b/net-im/telegram/Manifest
@@ -1,2 +1,2 @@
-DIST telegram-0.10.1.tar.xz 20883804 SHA256 eb57fdf613c79be9408ac31476c37ad18a4991990fe8172e2007f6e90af4f1ee SHA512 879b802e0d959a41cca027f468a44a08701975b3e5c8dd3e97b4a9e719435ae09a60bb822fcfd223853d549df18b86a51472cd9897ce9693c8d23df2315f8e70 WHIRLPOOL ef477b3c8804afffb0e769cb999c53738f6f53767d28c1f62874c463c4a8a97230a741ef6c441c131bf220478d4bd98e16c909922b072662ac46240f5e3454a7
-DIST telegram32-0.10.1.tar.xz 21596744 SHA256 c942b08fdc452f3cdc97be398a35d2d28b7b4063f97de4b68a180007b494950a SHA512 24daff9f17808ae33711144e81e333ae4441ad728db3098593fbfc1544369ed8153be736ce828565a26ea5a900e05b82b625cba5c983a27329c21a93e3918641 WHIRLPOOL a9d57c75f7264c2d252d756e08632b4a3a4fbe820e23631aed084da8c3aad1c60ada2cb25cd6ead70e18795fec269349f42efd9c7664b3375a20fdab83a1d422
+DIST tdesktop-1.2.1.tar.gz 16824849 SHA256 88f992f24f3c0109f4e7aa886a87fe7dbb234ea72a2f751159cb674fb16cbdac SHA512 020044e036c232e37e72d5ff4386dd15f3f7135d44b4db4926e2be1dc45431d9f274d43cf903189be03b507026f6121f39c2e983ef3e8c720fd61626aa1cc9af WHIRLPOOL c744b8c13e9671b27532f35e80a14c6370324584f5437df57bf4cb22d7b77a8b3770da47dc07604af1bc1fa8ca9e63aaa1d31d9e5fd1420a2461f398aea8a1bb
+DIST tsetup.1.2.1.tar.xz 33084716 SHA256 1adc9e60afc0a429765c3c454c297b3b42fc6fd8fe2d6eb61dfb76bb72b6765a SHA512 179408ac2df8ce4f90dac0f8bef70b0a2fce33d665bf0de3280b2743e874103814536d5ab53be2b1b49fe7aebbe202d04b2b98713e8183c950659af9372880c7 WHIRLPOOL 774a9907d467c632d8f2b183b80e5ef447c87386bd8a5f09e3d35c0f60410793cc2e8f152626daa70a799681cec1d8661c9cdac4cb88cec7fb41bf39aa20bb4a
diff --git a/net-im/telegram/files/telegram.png b/net-im/telegram/files/telegram.png
deleted file mode 100644
index 88b74325..00000000
--- a/net-im/telegram/files/telegram.png
+++ /dev/null
Binary files differ
diff --git a/net-im/telegram/telegram-0.10.1-r1.ebuild b/net-im/telegram/telegram-0.10.1-r1.ebuild
deleted file mode 100644
index eb2540d3..00000000
--- a/net-im/telegram/telegram-0.10.1-r1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-MY_PN="Telegram"
-inherit eutils
-DESCRIPTION="Unofficial telegram protocol client"
-HOMEPAGE="https://telegram.org/"
-SRC_URI="
- amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz -> ${P}.tar.xz )
- x86? ( https://updates.tdesktop.com/tlinux32/tsetup32.${PV}.tar.xz -> ${PN}32-${PV}.tar.xz )"
-
-RESTRICT="mirror"
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
-
-DEPEND="x11-libs/libxcb:=
- dev-libs/glib:2
- x11-libs/libX11"
-RDEPEND="${DEPEND}"
-S="${WORKDIR}/${MY_PN}"
-
-src_install() {
- exeinto "/opt/${PN}"
- doexe "${MY_PN}"
- make_wrapper "${PN}" "/opt/${PN}/${MY_PN}"
- make_desktop_entry "${PN}" "${MY_PN} Desktop" "/usr/share/pixmaps/${PN}.png" "" "MimeType=application/x-xdg-protocol-tg;x-scheme-handler/tg;"
- newicon "${FILESDIR}/${PN}.png" "${PN}.png"
-}
diff --git a/net-im/telegram/telegram-1.2.1.ebuild b/net-im/telegram/telegram-1.2.1.ebuild
new file mode 100644
index 00000000..29e2d3d8
--- /dev/null
+++ b/net-im/telegram/telegram-1.2.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils 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 )
+"
+
+LICENSE="telegram"
+SLOT="0"
+KEYWORDS="amd64"
+
+QA_PREBUILT="usr/bin/telegram-desktop"
+
+RDEPEND="
+ dev-libs/glib:2
+ dev-libs/gobject-introspection
+ >=sys-apps/dbus-1.4.20
+ x11-libs/libX11
+ >=x11-libs/libxcb-1.10[xkb]
+"
+DEPEND=""
+
+S="${WORKDIR}/Telegram"
+
+src_install() {
+ newbin "${S}/Telegram" 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
+}