New package: vscode-1.21.0
This commit is contained in:
parent
426ac6472c
commit
fcbba23a14
2 changed files with 73 additions and 0 deletions
30
srcpkgs/vscode/files/code.desktop
Normal file
30
srcpkgs/vscode/files/code.desktop
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Version=1.0
|
||||||
|
Name=Microsoft Code
|
||||||
|
Comment=Code Editing. Redefined.
|
||||||
|
GenericName=Text Editor
|
||||||
|
Exec=/usr/bin/code-oss --unity-launch %F
|
||||||
|
Icon=/usr/share/code-oss/resources/app/resources/linux/code.png
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
StartupWMClass=Code - OSS
|
||||||
|
Categories=Utility;TextEditor;Development;IDE;
|
||||||
|
MimeType=text/plain;inode/directory;
|
||||||
|
Actions=new-window;
|
||||||
|
Keywords=vscode;
|
||||||
|
|
||||||
|
[Desktop Action new-window]
|
||||||
|
Name=New Window
|
||||||
|
Name[de]=Neues Fenster
|
||||||
|
Name[es]=Nueva ventana
|
||||||
|
Name[fr]=Nouvelle fenêtre
|
||||||
|
Name[it]=Nuova finestra
|
||||||
|
Name[ja]=新規ウインドウ
|
||||||
|
Name[ko]=새 창
|
||||||
|
Name[ru]=Новое окно
|
||||||
|
Name[zh_CN]=新建窗口
|
||||||
|
Name[zh_TW]=開新視窗
|
||||||
|
Exec=/usr/bin/code-oss --new-window %F
|
||||||
|
Icon=/usr/share/code-oss/resources/app/resources/linux/code.png
|
||||||
|
|
43
srcpkgs/vscode/template
Normal file
43
srcpkgs/vscode/template
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Template file for 'vscode'
|
||||||
|
pkgname=vscode
|
||||||
|
version=1.21.0
|
||||||
|
revision=1
|
||||||
|
only_for_archs="i686 x86_64"
|
||||||
|
nocross=yes
|
||||||
|
nostrip=yes
|
||||||
|
hostmakedepends="pkg-config python nodejs"
|
||||||
|
makedepends="libX11-devel libxkbfile-devel libsecret-devel"
|
||||||
|
depends="GConf libXtst libxkbfile nss"
|
||||||
|
short_desc="Microsoft Code for Linux"
|
||||||
|
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://code.visualstudio.com/"
|
||||||
|
distfiles="https://github.com/Microsoft/vscode/archive/${version}.tar.gz"
|
||||||
|
checksum=d4773e3c136a311098c245a42f671eb1c90382f8e199f73dca500b0c15e41ba4
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
i686) _ARCH="ia32";;
|
||||||
|
x86_64) _ARCH="x64";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
npm install -g gulp yarn
|
||||||
|
yarn install --arch=${_ARCH}
|
||||||
|
yarn run gulp vscode-linux-${_ARCH}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
cd ../VSCode-linux-${_ARCH}
|
||||||
|
|
||||||
|
sed -i "20,31 d" bin/code-oss
|
||||||
|
sed -i "20iVSCODE_PATH=\"/usr/share/code-oss\"" bin/code-oss
|
||||||
|
vbin bin/code-oss
|
||||||
|
|
||||||
|
vlicense resources/app/LICENSE.txt
|
||||||
|
|
||||||
|
vmkdir usr/share/applications
|
||||||
|
vcopy ${FILESDIR}/code.desktop usr/share/applications/
|
||||||
|
|
||||||
|
vmkdir usr/share/code-oss
|
||||||
|
vcopy ./* usr/share/code-oss
|
||||||
|
}
|
Loading…
Reference in a new issue