Обновление telegram-desktop-bin до версии 4.10.3

master
serg-sg 7 months ago
parent ab07fd4d9b
commit 065d036d5b

@ -17,4 +17,5 @@ DIST org.telegram.desktop.metainfo.xml 6667 BLAKE2B f42191074369eb8fa47de486c950
DIST org.telegram.desktop.service 92 BLAKE2B 97e586db29055cdbab769fb2d6a331883c01006b58b792c5fa5466878d1667ab281b9dcc54b5732538a18baa78ad5bec22ceb30ead56058aa826e1a7bd81b512 SHA512 b1657103708b2591a3efdf93928bbd0d8f8b7afa2b693340957a37b80c1624f2bffbee7335f5c033f0ec85c32c076031c16a24fd6f972dd5f9016f3bcf5a499e
DIST tdesktop-4.8.1.tar.gz 17647125 BLAKE2B 154bce8111532f583cb27eb92d59a8218840fb65a2be479ece9f79824ed9ec364a76d97989513d9850a61c1a763b90c55cefbe9216a690a7bbffd8f85cca2bd9 SHA512 5a84eb49408e6e345cde330f4d969f1d22bc3849812b88a2199f1ac551198f58d21395150d64f86460d3e79682cbe41978495948caea66801e895c2b80257ff0
DIST tsetup.4.10.0.tar.xz 52141092 BLAKE2B f97da8b07730845a87ece5954eb3942dd834fa7a7a41dd504735235f7cc76e4eb73f84a0b7d8b7ab98fe9b174e49ce5f62e1bc0bbe5192a49ee908297ba65727 SHA512 3e211a7de811ef1143e724b4badac52a5d5142080463eaae030c6649dd8e670673655031f812961931189a4e79376e9700e751ee9918e726b35632a018250499
DIST tsetup.4.10.3.tar.xz 52239308 BLAKE2B 8d028c964e5d60788dcf35c370d942a5bc4c5f1682b7edf9787ce6ca60b363d58267cc71d1916092d90d0a4b8baf8d4ac09cede8651db8b5786292a1f8060b66 SHA512 27260d01c5b1bf1ae7120b9d4f95168b4335c8f803b21637af967d534cb9e538484b7c6e2782e79fa0a50b209ce489143546fd648cbc6d209a144ab5bd3f2ca1
DIST tsetup.4.8.1.tar.xz 51573568 BLAKE2B 257c8547954ab1d4b6aa22f935ba6af2af80094f78055eeb51a1363ddf8a8fea77edcb70ace240061e6681f2035fd8464750827c0c5a8306e6dad0fd2bd0ba50 SHA512 f3a66076dc285eb95c74eebef0fe5ab79dfeb21ebda8031623e5168c9ab9528f1cc09267a203bf41cd23aecf3683a0f007e413da318d24bc065b522eb7fcc244

@ -0,0 +1,104 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop optfeature 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.xz -> tsetup.${PV}.tar.xz
amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz )
https://github.com/telegramdesktop/tdesktop/raw/dev/lib/xdg/org.telegram.desktop.desktop
https://github.com/telegramdesktop/tdesktop/raw/dev/lib/xdg/org.telegram.desktop.metainfo.xml
https://github.com/telegramdesktop/tdesktop/raw/dev/lib/xdg/org.telegram.desktop.service
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon16.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon16%402x.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon32.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon32%402x.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon48.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon48%402x.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon64.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon64%402x.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon128.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon128%402x.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon256.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon256%402x.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon512.png
https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon512%402x.png
"
#https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon_round512%402x.png
#https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/icon_green.png
#https://github.com/telegramdesktop/tdesktop/raw/dev/Telegram/Resources/art/iconbig_green.png
LICENSE="GPL-3-with-openssl-exception"
SLOT="0"
KEYWORDS="-* ~amd64"
QA_PREBUILT="usr/bin/telegram-desktop"
RDEPEND="
!net-im/telegram-desktop
sys-libs/glibc
dev-libs/glib:2
>=media-libs/fontconfig-2.13
media-libs/freetype:2
virtual/opengl
x11-libs/libX11
>=x11-libs/libxcb-1.10[xkb]
"
RESTRICT="bindist mirror strip"
S="${WORKDIR}/Telegram"
src_unpack() {
unpack tsetup.${PV}.tar.xz
}
src_prepare() {
mkdir -p "${WORKDIR}/tdesktop-${PV}/lib/xdg/"
mkdir -p "${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/"
mkdir -p "${WORKDIR}/usr/share/mime/packages/"
cp -r ${DISTDIR}/*.desktop "${WORKDIR}/tdesktop-${PV}/lib/xdg/"
cp -r ${DISTDIR}/*.service "${WORKDIR}/tdesktop-${PV}/lib/xdg/"
cp -r ${DISTDIR}/*.xml "${WORKDIR}/usr/share/mime/packages/"
cp -r ${DISTDIR}/icon* "${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/"
sed -i -E -e 's/^Exec=.*telegram-desktop/Exec=\/usr\/bin\/telegram-desktop/' \
"${WORKDIR}/tdesktop-${PV}"/lib/xdg/org.telegram.desktop.service || die
default
}
src_install() {
newbin Telegram telegram-desktop
insinto /etc/tdesktop
newins - externalupdater <<<"${EPREFIX}/usr/bin/telegram-desktop"
for icon in "${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/"*.png; do
size=${icon##*/icon}
size=${size%.png}
size=${size%\%402x}
dodir "/usr/share/icons/hicolor/${size}/apps"
if [[ ${icon} =~ "%402x" ]] ; then
newicon -s ${size%%x*} "$icon" ${PN}@2x.png
else newicon -s ${size%%x*} "$icon" ${PN}.png
fi
done
dosym ../icons/hicolor/512x512/apps/${PN}.png \
/usr/share/pixmaps/${PN}.png
domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/*.desktop
insinto /usr/share/dbus-1/services
doins "${WORKDIR}/tdesktop-${PV}"/lib/xdg/*.service
cp -Lr ${WORKDIR}/usr/* "${D}/usr/"
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "spell checker support" app-text/enchant
}
Loading…
Cancel
Save