-
Notifications
You must be signed in to change notification settings - Fork 2
/
PKGBUILD
31 lines (28 loc) · 1.41 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
pkgname=vscode
pkgver=1.96.0
pkgrel=1
pkgdesc='Microsoft Visual Studio Code is a code editor Open Source'
arch=('x86_64')
url="https://code.visualstudio.com/"
license=('MIT')
depends=('gtk3' 'alsa-lib' 'libnotify' 'nss' 'libxtst' 'libxss' 'cairo' 'fontconfig' 'gcc-libs'
'libnotify' 'glibc')
optdepends=('libdbusmenu-glib: to enable global menu (install via kcp)')
source=(vscode_${pkgver}_x86_64.tar.gz::https://update.code.visualstudio.com/${pkgver}/linux-x64/stable
"${pkgname}.desktop")
md5sums=('29854294f61dafa5d0c6c01829ea6781'
'20439bbbd1cb5fa5c8d9cb24a05f3b08')
package() {
install -dm755 ${pkgdir}/usr/share/applications \
${pkgdir}/opt/vscode \
${pkgdir}/usr/share/icons \
${pkgdir}/usr/share/licenses/${pkgname}
cp -r ${srcdir}/VSCode-linux-x64/* ${pkgdir}/opt/vscode
install -Dm644 ${pkgdir}/opt/vscode/resources/app/{LICENSE*,licenses/LICENSE*} ${pkgdir}/usr/share/licenses/${pkgname}/
install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
install -m644 "${srcdir}/VSCode-linux-x64/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/code.png"
install -dm755 ${pkgdir}/usr/bin
ln -s /opt/vscode/bin/code ${pkgdir}/usr/bin/${pkgname}
ln -s /opt/vscode/bin/code ${pkgdir}/usr/bin/code
rm -rf ${pkgdir}/opt/vscode/resources/app/{LICENSE*,licenses}
}