Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app-editors/vscode-bin/Manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
DIST vscode-bin-linux-arm64-1.120.0.tar.gz 205739655 BLAKE2B 10b9f75cf27bf3f62e749f7a9d0bae5ff22bd1b7152b4c2a7f5e3e6973c63a22a1bd2e3d2b9788b2a549f22eb81044c26184d24eec3c730ccbf7da27c69d0495 SHA512 7d2df3921fb98e8f40e51d2a4925c975cdf7df420beb7587b06689651242e60463eb159ccbbbdb5e41d606599ee6d924e6b5192bcb15dbf4564c3550bdaa0938
DIST vscode-bin-linux-arm64-1.121.0.tar.gz 218992391 BLAKE2B 563fa8ad138b7eda5ed72c838e159e3364a721cfa6cf088d575192192a71cc9af98270741755ab32efa5ff9985b9eece415ad9b3716f679d790aed52a9eed3d4 SHA512 7b9672b5bb746952409e0f714d68e486b882850f10a04d6f16ad99aaa2268693f896605d3b129974569930ced615cda03120faddd79d8cded3b8ff039acd9e83
DIST vscode-bin-linux-arm64-1.122.1.tar.gz 315572694 BLAKE2B 58f8f220109a2bb1199d939cf69f13239eb69211f75f527767b886f8fa90e0948c8c57e0e5068b908a64c56617c2439ae38a08eb7c6e768a679a4350c11d4a08 SHA512 e5c3af46954763ade8868f6ee97ad3f827c6ad0046b6f7e80b1ddbb88fd3e375779dcc67e9fd18a249a0da0b72761d9ab2a7ff7da0715acd6fdf627024ad33a0
DIST vscode-bin-linux-arm64-1.128.0.tar.gz 293551322 BLAKE2B 4294373d695ac641fd62ab3621526976edf4fe1086732372ad6056fb9a3d65cfb13d83784225705570f02f2c037c1a73ff3b1845007bfe92ccf129e72810cc89 SHA512 b3d43fad6b3ad34e28a0e987116c319ee9bf60543f45aafd678cf5ac586e77efacc4f2f58a40a386d385edcc20d31e604007e56a386ba1b33d76a643f71b7670
DIST vscode-bin-linux-x64-1.120.0.tar.gz 211963080 BLAKE2B 21d38e0b2dac506fae9b9a9ab0ef885c16da20a900d0d6a10b4d414cfa7109f9a267d189e0e4dac233fc9d28891ae9d4d2b3146d1da3d7365b952adea0317a57 SHA512 313a0b21edc05abfd25b5f938e99708547a17f229df09f56bffae94b000fb1a1e57ba37438d378ab645ae8bcefdd14f1fa7bd838a8ab635e6ec281424aecb767
DIST vscode-bin-linux-x64-1.121.0.tar.gz 225243640 BLAKE2B 505646c0cf7ed47c63a615291f2767b21f2be6550fafb899a4d61cd346fb6baec8b8f08020fe4b89c860577ec726b06664e6491dba2e9dff48ab4f8291e76c80 SHA512 5e8b33c973d61c8af9e66656ce533c67355e7dbed786fe62aa4e13860d1b7a837b82778df7de2e2994cc4428474aaf830f857b26782a34fb120f14ef7893b01e
DIST vscode-bin-linux-x64-1.122.1.tar.gz 322074137 BLAKE2B 17859b5a160a97d1604e9709051bacac2364abc1050dbf239ea5410fdaaa2653c056d40f91a783437b76cef11dac7bff3c59f9a39db9b426d88433141805d357 SHA512 3d5cfd98dd11e5ecd1573a5ce382491ccc60e7fdf31f39204754ca844a6039b54fc6cf6297261082f4984c3cd30fde3273922df7e3efc64b591927a69d28a47a
DIST vscode-bin-linux-x64-1.128.0.tar.gz 301414742 BLAKE2B c7050c8795918b58774ac3be866759b962c9f240fc3848e53749a5ef7738b2d778b142c5091ed90bec3394d4e83450cbf890a49b5a92a97df02b6eb6dba6ba48 SHA512 9d1ebfa4ccffed137c8abac27332b3505bc08407c27879ab4b936cc31e00ee02c35f5c6a937ed57737d16b82f6406d63e01e855c8db9084657dfd37f67def2e5
76 changes: 76 additions & 0 deletions app-editors/vscode-bin/vscode-bin-1.128.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
QA_PREBUILT="/opt/*"
inherit bash-completion-r1 desktop eutils pax-utils xdg

DESCRIPTION="Open-source code editor"
HOMEPAGE="https://code.visualstudio.com/"
SRC_URI="
amd64? ( https://update.code.visualstudio.com/1.128.0/linux-x64/stable -> vscode-bin-linux-x64-1.128.0.tar.gz )
arm64? ( https://update.code.visualstudio.com/1.128.0/linux-arm64/stable -> vscode-bin-linux-arm64-1.128.0.tar.gz )"
LICENSE="Apache-2.0
BSD
BSD-1
BSD-2
BSD-4
CC-BY-4.0
ISC
LGPL-2.1+
Microsoft
MIT
MPL-2.0
openssl
PYTHON
TextMate-bundle
Unlicense
UoI-NCSA
W3C
"
SLOT="0"
KEYWORDS="*"
IUSE="amd64 arm64 zsh-completion"
src_unpack() {
default
mv "${WORKDIR}"/VSCode-linux-* "${S}" || die
}
src_install() {
local instdir="/opt/vscode-bin"
local exe=code
# Cleanup
rm -r ${S}/resources/app/ThirdPartyNotices.txt || die
# Disable update server
sed -e "/updateUrl/d" -i ${S}/resources/app/product.json || die
pax-mark m "${instdir}/${exe}"
insinto "${instdir}"
doins -r *
dosym "${instdir}/${exec}" "/usr/bin/vscode-bin"
make_wrapper "vscode-bin" "${instdir}/${exe}"
domenu ${FILESDIR}/${PN}.desktop
newicon ${S}/resources/app/resources/linux/code.png vscode-bin.png
dosym "${instdir}"/bin/"${exe}" "/usr/bin/code"
fperms +x "${instdir}/${exe}"
fperms +x "${instdir}/bin/${exe}"
fperms 4711 "${instdir}/chrome-sandbox"
chmod +x $(find "${D}/${instdir}"/resources/app/node_modules/@vscode/ripgrep-universal/bin/ | grep rg)
if [ -e "${ED}"/"${instdir}"/chrome_crashpad_handler ]; then
fperms 4755 "${instdir}"/chrome_crashpad_handler
fi
insinto "/usr/share/licenses/vscode-bin"
newins "resources/app/LICENSE.rtf" "LICENSE.rtf"
newbashcomp resources/completions/bash/code code
if use zsh-completion; then
insinto /usr/share/zsh/site-functions
doins "${S}"/resources/completions/zsh/_code
fi
}
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}


# vim: filetype=ebuild