app-editors/typora: add 0.11.18

This commit is contained in:
Yongxiang Liang 2023-02-19 14:25:09 +08:00 committed by 梁永祥
parent a079725f50
commit 3d3b832963
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.5.8_amd64.deb 85330472 BLAKE2B bbcbb4c8edda85351adcc37518e30e242f39973649155187afeaf05cac0192292767f54732f38a40a5474d21c93aa75c166c03ef13860b42d7558c967a8b43f2 SHA512 ceb62393913c5b51486d4867c914d43d9ebe2bd4cb9e6c67f83ca20d816594e968d648c97811ab4f4238acdc21c5cf9b95fa82084e3e33d0a3978dc0974b6e7e

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
}