app-editors/typora: Keep typora-0.11.18 the last free to use
This commit is contained in:
HougeLangley 2023-01-03 00:17:55 +08:00 committed by 苏业钦
parent 148b1a1657
commit fc6ce04c3a
2 changed files with 52 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST typora_0.11.18_amd64.deb 70282052 BLAKE2B a41621a76b0b8c40a500728c0bd74a6b279b7f8b515c5e3c818ad9b493469d3925fb530502c434c996a576b70eeed21f0cbf2fd534efb2bfe853b01c6860542a SHA512 8933cb4eab13a37719a3771d14a7a3f5951f6bbce06381ffe37ad5bc3029efed3878723427a4e97b83dbc1d7ccc43b31551b0c336663c843f0e685f8a4e2390e
DIST typora_1.4.7_amd64.deb 79756044 BLAKE2B db9500738f2d8ae9eb7679d3b42e298c3ded9eebb878d6c52cb1954217db32428ee6cf0eeb9a2520ddc5e7c1463bb13e0e2620622fbaf7dae75a780e6adf78c3 SHA512 fec39383931f0a9a41d2d8bb2d71895200bdadf7d9dedc5bf321ccd626de61a9afc2a476cfd0db028c5382484350a42e00eb3e166c588b960d43d4ccb3c8f277

View File

@ -0,0 +1,51 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop
DESCRIPTION="Typora will give you a seamless experience as both a reader and a writer."
HOMEPAGE="https://typora.io"
SRC_URI="https://hougearch.litterhougelangley.club/src/typora_${PV}_amd64.deb"
#TODO : update license
LICENSE="typora"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="mirror"
DEPEND=""
RDEPEND="
x11-libs/libXScrnSaver
${DEPEND}"
BDEPEND=""
QA_PREBUILT="*"
src_unpack() {
default
unpack "${WORKDIR}"/data.tar.xz
S="${WORKDIR}/usr"
}
src_install() {
local dir="/opt/${PN}"
insinto "${dir}"
rm -rf share/lintian
sed -i '/Change Log/d' share/applications/typora.desktop
doins -r bin share
fperms 0755 "${dir}/bin/typora"
fperms 4755 "${dir}/share/typora/chrome-sandbox"
dosym "../../opt/typora/bin/typora" "usr/bin/typora"
domenu share/applications/typora.desktop
}
pkg_postinst() {
update-desktop-database
}