summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Rasmus Thomsen <cogitri@exherbo.org> 2018-07-12 23:06:30 +0200
committerAvatar Rasmus Thomsen <cogitri@exherbo.org> 2018-07-12 23:33:33 +0200
commit0fa6bfe7d353cf64aa26a9a1a07692929cfe67e7 (patch)
tree2bc1434d9b8914c839f7d7f88214dae2046be2a1
parentc5e93a97c9242e06cd721befcef38f1ef1b90392 (diff)
downloadcogitri-0fa6bfe7d353cf64aa26a9a1a07692929cfe67e7.tar.gz
cogitri-0fa6bfe7d353cf64aa26a9a1a07692929cfe67e7.tar.xz
vscode-bin: initial exheres
-rw-r--r--packages/app-editors/vscode-bin/files/vscode.desktop18
-rwxr-xr-xpackages/app-editors/vscode-bin/files/vscode.pngbin0 -> 145685 bytes
-rw-r--r--packages/app-editors/vscode-bin/vscode-bin-1.25.1.exheres-074
3 files changed, 92 insertions, 0 deletions
diff --git a/packages/app-editors/vscode-bin/files/vscode.desktop b/packages/app-editors/vscode-bin/files/vscode.desktop
new file mode 100644
index 0000000..01390d2
--- /dev/null
+++ b/packages/app-editors/vscode-bin/files/vscode.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=Visual Studio Code
+Comment=Code Editing. Redefined.
+GenericName=Text Editor
+Exec=/usr/bin/vscode --unity-launch %F
+Icon=vscode
+Type=Application
+StartupNotify=true
+StartupWMClass=Code
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=text/plain;inode/directory;
+Actions=new-empty-window;
+Keywords=vscode;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/vscode --new-window %F
+Icon=vscode
diff --git a/packages/app-editors/vscode-bin/files/vscode.png b/packages/app-editors/vscode-bin/files/vscode.png
new file mode 100755
index 0000000..7218ada
--- /dev/null
+++ b/packages/app-editors/vscode-bin/files/vscode.png
Binary files differ
diff --git a/packages/app-editors/vscode-bin/vscode-bin-1.25.1.exheres-0 b/packages/app-editors/vscode-bin/vscode-bin-1.25.1.exheres-0
new file mode 100644
index 0000000..5d94a34
--- /dev/null
+++ b/packages/app-editors/vscode-bin/vscode-bin-1.25.1.exheres-0
@@ -0,0 +1,74 @@
+# Copyright 2018 Rasmus Thomsen <cogitri@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+SUMMARY="Code editing. Redefined."
+HOMEPAGE="https://code.visualstudio.com/"
+
+DOWNLOADS="
+ platform:amd64? ( https://vscode-update.azurewebsites.net/${PV}/linux-x64/stable -> ${PNV}-amd64.tar.gz )
+"
+
+LICENCES="MIT"
+SLOT="0"
+MYOPTIONS="platform: amd64"
+PLATFORMS="~amd64"
+
+DEPENDENCIES="
+ run:
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libsecret:1
+ dev-libs/nspr
+ dev-libs/nss
+ gnome-platform/GConf:2
+ media-libs/fontconfig
+ media-libs/freetype:2
+ net-print/cups
+ sys-apps/dbus
+ sys-libs/glibc
+ sys-libs/libgcc:*
+ sys-libs/libstdc++:*
+ sys-libs/zlib
+ sys-sound/alsa-lib
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2.0
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXScrnSaver
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-libs/libxcb
+ x11-libs/libxkbfile
+ x11-libs/pango
+"
+
+WORK="${WORKBASE}/VSCode-linux-x64"
+
+pkg_setup() {
+ exdirectory --allow /opt
+}
+
+src_install() {
+ dodir /opt/${PN}
+ edo mv "${WORK}"/* "${IMAGE}"/opt/${PN}
+
+ dodir /usr/$(exhost --target)/bin
+ dosym /opt/${PN}/code /usr/$(exhost --target)/bin/vscode
+
+ # vscode's tar archive contains neither the desktop file
+ # nor an icon. These are from their .deb
+ insinto /usr/share/applications
+ doins "${FILES}"/vscode.desktop
+
+ insinto /usr/share/pixmaps
+ doins "${FILES}"/vscode.png
+}
+