blob: 9af1a5c85643afa91409c1051da58bfd1793da63 (
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
|
# Maintainer: D. Can Celasun <can[at]dcc[dot]im>
pkgname=visual-studio-code
pkgver=1.17.0
pkgrel=1
pkgdesc="Visual Studio Code: Editor for building and debugging modern web and cloud applications (official binary version)"
arch=('x86_64' 'i686')
url="https://code.visualstudio.com/"
license=('custom: commercial')
provides=('vscode','visualstudiocode')
depends=(fontconfig libxtst gtk2 python cairo alsa-lib gconf nss gcc-libs libnotify libxss gvfs)
source_x86_64=(code_x64_${pkgver}.tar.gz::https://vscode-update.azurewebsites.net/${pkgver}/linux-x64/stable
${pkgname}.desktop
)
source_i686=(code_ia32_${pkgver}.tar.gz::https://vscode-update.azurewebsites.net/${pkgver}/linux-ia32/stable
${pkgname}.desktop
)
sha256sums_x86_64=('13bf409367f554addff6210fa0db4ad49677b5fc610b4fc8b8e5452d16eb67ab'
'de88d95db3f55ce58ffd3c229cbde566099384d4f005cf887b00ccaeed605984')
sha256sums_i686=('618cf86ed1d35da717f480f95ac6d06811ae4f338baf90fce9c5baa7db9fd6e8'
'de88d95db3f55ce58ffd3c229cbde566099384d4f005cf887b00ccaeed605984')
package() {
_pkg=VSCode-linux-x64
if [ "${CARCH}" = "i686" ]; then
_pkg=VSCode-linux-ia32
fi
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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
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"
cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${pkgname}" -R
ln -s /opt/${pkgname}/bin/code "${pkgdir}"/usr/bin/code
}
|