net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / app-editors / typora / typora-0.11.2.ebuild
blobd29cc70e9ea4efbfd4e6bbbb7af5c117db34eeaf
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 DESCRIPTION="Typora will give you a seamless experience as both a reader and a writer."
7 HOMEPAGE="https://typora.io"
8 SRC_URI="https://www.typora.io/linux/typora_${PV}_amd64.deb"
10 #TODO : update license
11 LICENSE="typora"
12 SLOT="0"
13 KEYWORDS="~amd64"
14 IUSE=""
16 RESTRICT="mirror"
18 DEPEND=""
19 RDEPEND="
20 x11-libs/libXScrnSaver
21 ${DEPEND}"
22 BDEPEND=""
24 QA_PRESTRIPPED="
25 /opt/${PN}/share/typora/Typora
26 /opt/${PN}/share/typora/chrome-sandbox
27 /opt/${PN}/share/typora/.*\.so
28 /opt/${PN}/share/typora/.*/.*\.so
29 /opt/${PN}/share/typora/resources/app/node_modules/vscode-ripgrep/bin/rg
30 /opt/${PN}/share/typora/resources/app/node_modules/pathwatcher/build/Release/pathwatcher.node
31 /opt/${PN}/share/typora/resources/app/node_modules/spellchecker/build/Release/spellchecker.node
32 /opt/${PN}/share/typora/resources/app/node_modules/spellchecker/node_modules/cld/build/Release/cld.node
35 src_unpack() {
36 default
37 unpack "${WORKDIR}"/data.tar.xz
38 S="${WORKDIR}/usr"
41 src_install() {
42 local dir="/opt/${PN}"
44 insinto "${dir}"
45 rm -rf share/lintian
46 sed -i '/Change Log/d' share/applications/typora.desktop
47 doins -r bin share
49 fperms 0755 "${dir}/bin/typora"
50 fperms 4755 "${dir}/share/typora/chrome-sandbox"
51 dosym "../../opt/typora/bin/typora" "usr/bin/typora"
53 domenu share/applications/typora.desktop
56 pkg_postinst() {
57 update-desktop-database