blob: eb2540d38bcd38d9f2fb1f4109b9ecbbf38af317 (
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
|
# 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"
}
|