Skip to content
Closed
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.126.0.tar.gz 274329133 BLAKE2B ef7d037e2fc16f8480a4fcd5b3ede62a033cc16efbddf1e7d1ad5c34287e87295f6851b440ff95d0064cf33f897e282bb9f526041ea63ee32b915c5d618e1f8f SHA512 edd9c6900f1b92a9ff3d6ba53e4c0e5c2797f1091efd03284fb2bda6623259451d3565db50cad79e11c2d5d697957198412fc3550b724de03c9e0402d6bc2b25
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.126.0.tar.gz 283094084 BLAKE2B c0ca0830717e8c18c8ec6c0b54697f435db745bf58cb73a86f208a5367ed1ed6248a363475fd0a58ac382fe8e360f94ceca6d8a4e35b73b8f71b5fe0ce661ddd SHA512 5eed338759dd5efdec572ac6eb6efc1fa1f8a40b449af3a0fe4a886b5c17a2e1fafaf4f459291f7d627858623c0506d5a138ae2f83ffc16ce96617c8843d60f5
76 changes: 76 additions & 0 deletions app-editors/vscode-bin/vscode-bin-1.126.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.126.0/linux-x64/stable -> vscode-bin-linux-x64-1.126.0.tar.gz )
arm64? ( https://update.code.visualstudio.com/1.126.0/linux-arm64/stable -> vscode-bin-linux-arm64-1.126.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