summaryrefslogtreecommitdiff
path: root/net-im/telegram/telegram-0.10.1-r1.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-12-04 16:55:02 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-12-04 16:55:02 +0000
commit9537deb073178c7a997e4810a6e499b74963089d (patch)
tree133dacf0653523958dc73daa021e87b4fd08f05b /net-im/telegram/telegram-0.10.1-r1.ebuild
parent7623b8b96d81e5a06582627a3c16184aa9a407dd (diff)
lower revisions
Diffstat (limited to 'net-im/telegram/telegram-0.10.1-r1.ebuild')
-rw-r--r--net-im/telegram/telegram-0.10.1-r1.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-im/telegram/telegram-0.10.1-r1.ebuild b/net-im/telegram/telegram-0.10.1-r1.ebuild
new file mode 100644
index 00000000..eb2540d3
--- /dev/null
+++ b/net-im/telegram/telegram-0.10.1-r1.ebuild
@@ -0,0 +1,33 @@
+# 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"
+}