diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest new file mode 100644 index 0000000..610c15c --- /dev/null +++ b/app-editors/vscode/Manifest @@ -0,0 +1,3 @@ +DIST vscode-1.61.1-amd64.tar.gz 112707199 BLAKE2B f992466965e6807c000718c90c59e5d45e46192c8ec4a14e843ef71bebeb86bfc281ea2e7c41a5c515a904ecff82c3edc47ae33d769a2a69f154529ae4bf6a25 SHA512 4bc9fa8aa1160573f367c609a175547b12592f07a36d5c49c0d1434a7b22257dbb6ec39ce3bbc40f55177a9de51d49ac8b85e563cae9a5cff520a812f92afd7e +DIST vscode-1.61.1-arm.tar.gz 94342599 BLAKE2B 98ffc184981197bfd6fb1a0104e8a95ac18df27eee9e44e46fd42bd3986176b0996a8a454414c860a15f6d3679c3e3ab0677cb380de2b4d4f154ba83b939133c SHA512 dd9066ba6d0ad26f1b49cebeeed5d2c45be97a6e749f1a1fe83f259311f89e25ee79d3e305481879504b3e4a99bb6aa61025403265304f82ddc348cb38104140 +DIST vscode-1.61.1-arm64.tar.gz 107928610 BLAKE2B aa88e8784976d02f35c08aee64e25f63d3cf5ab53c2941f1170dc1e5a59000e853cb6f7bb597d6035b61e8421639d60b6cd63b62667d54a7bea1b2e2e7de0515 SHA512 7e561e3d2a79f58062e256cf0d0cf98eb0d16d55b943e8eeeda9e19b00922cfe63f70bb386de0337a83ec852cc83ca770e31fad085f60cf09ec70ac27d2a9b7c diff --git a/app-editors/vscode/metadata.xml b/app-editors/vscode/metadata.xml new file mode 100644 index 0000000..eb6fadb --- /dev/null +++ b/app-editors/vscode/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app-editors/vscode/vscode-1.61.1.ebuild b/app-editors/vscode/vscode-1.61.1.ebuild new file mode 100644 index 0000000..8bd3a32 --- /dev/null +++ b/app-editors/vscode/vscode-1.61.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bintron desktop + +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" +HOMEPAGE="https://code.visualstudio.com" +SRC_URI=" + amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz ) + arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz ) + arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz ) +" +S="${WORKDIR}" + +LICENSE=" + Apache-2.0 + BSD + BSD-1 + BSD-2 + BSD-4 + CC-BY-4.0 + ISC + LGPL-2.1+ + Microsoft-vscode + MIT + MPL-2.0 + openssl + PYTHON + TextMate-bundle + Unlicense + UoI-NCSA + W3C +" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" + +correct_dir() { + if use amd64; then + cd "${WORKDIR}/VSCode-linux-x64" || die + elif use arm; then + cd "${WORKDIR}/VSCode-linux-armhf" || die + elif use arm64; then + cd "${WORKDIR}/VSCode-linux-arm64" || die + else + die "Visual Studio Code only supports amd64, arm and arm64" + fi +} + +src_prepare() { + correct_dir + bintron_src_prepare +} + +src_install() { + correct_dir + bintron_src_install + + newicon ./resources/app/resources/linux/code.png vscode.png + make_desktop_entry code VSCode vscode "TextEditor;Development;IDE;" +}