-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
PKGBUILD
61 lines (55 loc) · 2.13 KB
/
PKGBUILD
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
pkgname=visual-studio-code-insiders
_pkgbuildnumber=1731649632
_pkgversion=1.96.0_insider
pkgver="${_pkgversion}+${_pkgbuildnumber}"
pkgrel=1
pkgdesc="Editor for building and debugging modern web and cloud applications (insiders version)"
arch=('x86_64')
url="https://code.visualstudio.com/"
license=('custom: commercial')
depends=(
'libxkbfile'
'gnupg'
'gtk3'
'libsecret'
'nss'
'gcc-libs'
'libnotify'
'libxss'
'glibc'
'lsof' # terminal splitting, see https://github.com/Microsoft/vscode/issues/62991
)
optdepends=(
"glib2: Needed for move to trash functionality"
"libdbusmenu-glib: Needed for KDE global menu"
)
_src_x86_64="https://update.code.visualstudio.com/latest/linux-x64/insider"
source_x86_64=(
"code_insider_x64_${_pkgbuildnumber}.tar.gz::${_src_x86_64}"
"${pkgname}.desktop"
"${pkgname}-url-handler.desktop"
"${pkgname}.sh"
)
_main_desktop_sha256='b32380762e4931825c11a46a7a08b928d603fdd6db5ec31c7b29982453f67cbd'
_url_handler_desktop_sha256='0af52e8fb02b9777ee9736ed9ff38eb4cac3f2e9687f21f5fce49d215d38bbe1'
_wrapper_script_sha256='a1b05c4dbab7167b09cb8f9d680600b3f517dea6c3696ac9d84f1566f70c4b8d'
sha256sums_x86_64=(
'a3d9bce059d37f93dc3a5fe467d71918102eb26c53f3dba893c1c5caab940a97'
"${_main_desktop_sha256}"
"${_url_handler_desktop_sha256}"
"${_wrapper_script_sha256}"
)
package() {
_pkg=VSCode-linux-x64
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -d "${pkgdir}/opt/${pkgname}"
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/usr/share/applications"
install -d "${pkgdir}/usr/share/icons"
install -m644 "${srcdir}/${_pkg}/resources/app/LICENSE.rtf" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rtf"
install -m644 "${srcdir}/${_pkg}/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/${pkgname}.png"
install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -m644 "${srcdir}/${pkgname}-url-handler.desktop" "${pkgdir}/usr/share/applications/${pkgname}-url-handler.desktop"
cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${pkgname}" -R
install -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/code-insiders"
}