net-proxy/v2rayA: remove depend on openssl-1.1
[gentoo-zh.git] / net-im / tencent-qq / tencent-qq-2.0.1_beta1_p429.ebuild
blob1c6f5748d526d0d094298021e94338cb0fa287b5
1 # Copyright 2019-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit desktop unpacker xdg
8 MY_PV=${PV/_beta1_p/-}
10 DESCRIPTION="The new version of the official linux-qq"
11 HOMEPAGE="https://im.qq.com/linuxqq/download.html"
12 LICENSE="Tencent"
13 RESTRICT="strip"
15 SRC_URI="
16 amd64? ( https://dldir1.qq.com/qqfile/qq/QQNT/4691a571/QQ-v${MY_PV}_x64.deb )
19 SLOT="nt"
20 KEYWORDS="~amd64"
22 IUSE="+bwrap split-usr"
23 RDEPEND="
24 x11-libs/gtk+:3
25 x11-libs/libnotify
26 dev-libs/nss
27 x11-libs/libXScrnSaver
28 x11-libs/libXtst
29 x11-misc/xdg-utils
30 app-accessibility/at-spi2-core:2
31 app-crypt/libsecret
32 bwrap? ( sys-apps/bubblewrap )
35 S=${WORKDIR}
37 src_install() {
38 insinto /opt
39 doins -r opt/*
41 fperms +x /opt/QQ/{qq,chrome_crashpad_handler,chrome-sandbox,libEGL.so,libffmpeg.so,libGLESv2.so,libvk_swiftshader.so,libvulkan.so.1}
42 printf "#!/bin/bash\ncd /opt/QQ\n./qq \$@\n" > qq || die
43 if use bwrap ;then
44 if use split-usr ;then
45 sed -i 's!symlink!ro-bind!' "${FILESDIR}"/start.sh || die
46 sed -i 's!usr/!/!' "${FILESDIR}"/start.sh || die
48 sed -i 's!./qq!/opt/QQ/start.sh!' qq || die
50 dobin qq
52 if use bwrap ;then
53 exeinto /opt/QQ
54 doexe "${FILESDIR}"/start.sh
55 sed -i 's!/opt/QQ/qq!/opt/QQ/start.sh!' usr/share/applications/qq.desktop || die
56 else
57 sed -i 's!/opt/QQ/qq!/usr/bin/qq!' usr/share/applications/qq.desktop || die
60 sed -i 's!/opt/QQ/resources/app/512x512.png!qq!' usr/share/applications/qq.desktop || die
61 domenu usr/share/applications/qq.desktop
62 doicon -s 512 usr/share/icons/hicolor/0x0/apps/qq.png
63 gzip -d usr/share/doc/linuxqq/changelog.gz || die
64 dodoc usr/share/doc/linuxqq/changelog