From 73547a83fa48de8f2b5a9efd8d5e92ce6dc7beae Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Mon, 3 May 2021 19:30:56 +0200 Subject: [PATCH] app-editors/typora-bin: use proper releases Closes: https://bugs.gentoo.org/786918 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan --- app-editors/typora-bin/Manifest | 2 +- ...n-9999.ebuild => typora-bin-0.10.7.ebuild} | 23 +++++-------------- 2 files changed, 7 insertions(+), 18 deletions(-) rename app-editors/typora-bin/{typora-bin-9999.ebuild => typora-bin-0.10.7.ebuild} (56%) diff --git a/app-editors/typora-bin/Manifest b/app-editors/typora-bin/Manifest index aa2a5bb957..566140d5fe 100644 --- a/app-editors/typora-bin/Manifest +++ b/app-editors/typora-bin/Manifest @@ -1 +1 @@ -DIST typora-9999-linux-x64.tar.gz 90347518 BLAKE2B 09ad07338afd4f91769f317edfda60b006a7b20b328ea7e74dfe742e7d20d81333e951532ce869961509cca7000f34295a328cc919b7450dd3bd0a7ead49afd7 SHA512 0ab3a1c0bdd32fe1b7311e1d02f6962a477c7209710c95fd66d1490a3cba3b823263baa42305250ad8ef113394b8a5faec3f9a2557ecd3402dc5aa5134c3c602 +DIST typora_0.10.7_amd64.deb 67149180 BLAKE2B b1ede052143ae96136941768e586dcd60df64504c182e01e837bf16c343523ad87553401b725e472698e7ad0aaedb326366c01b470778ca279af214508fc1320 SHA512 ccfe965514b71b31e1c8f986e1ea46976c6a0f87edc65f04e936897bc417880f0b915e4539eb50114125206a75235762a01d02ca16a9f6063da1adc812127226 diff --git a/app-editors/typora-bin/typora-bin-9999.ebuild b/app-editors/typora-bin/typora-bin-0.10.7.ebuild similarity index 56% rename from app-editors/typora-bin/typora-bin-9999.ebuild rename to app-editors/typora-bin/typora-bin-0.10.7.ebuild index 19b801b33e..e87604f14f 100644 --- a/app-editors/typora-bin/typora-bin-9999.ebuild +++ b/app-editors/typora-bin/typora-bin-0.10.7.ebuild @@ -3,15 +3,15 @@ EAPI=7 -inherit desktop xdg +inherit unpacker xdg DESCRIPTION="a markdown editor,markdown reader." HOMEPAGE="https://typora.io" -SRC_URI="https://typora.io/linux/Typora-linux-x64.tar.gz -> typora-${PV}-linux-x64.tar.gz" +SRC_URI="https://typora.io/linux/typora_${PV}_amd64.deb" LICENSE="Typora-EULA" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="-* ~amd64" IUSE="" DEPEND="" @@ -39,20 +39,9 @@ RDEPEND=" BDEPEND="" QA_PREBUILT="*" - -src_unpack() { - if [ ${A} != "" ]; then - unpack ${A} - fi - S="${WORKDIR}/bin/Typora-linux-x64/" -} +S="${WORKDIR}" src_install() { - insinto /opt/ - doins -r "${S}" - newicon "$S/resources/app/asserts/icon/icon_512x512@2x.png" "${PN}.png" - dosym ../../opt/Typora-linux-x64/Typora /usr/bin/Typora - fperms 0755 /opt/Typora-linux-x64/Typora - fperms 4755 /opt/Typora-linux-x64/chrome-sandbox - domenu "${FILESDIR}/Typora.desktop" + mv "${S}"/* "${ED}" || die + mv "${ED}/usr/share/doc/${PN//-bin}" "${ED}/usr/share/doc/${PF}" || die }