summaryrefslogtreecommitdiff
path: root/packages/app-editors/vscode-bin/vscode-bin-1.25.1.exheres-0
blob: 5d94a34a71240c8b6f92ddba4f9ad7990658b360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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
}