blob: 552adac8eacef2cf9e5009e5adc048871395a9a5 (
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 <dcelasun[at]gmail[dot]com>
pkgname=visual-studio-code
pkgver=1.8.1
pkgrel=3
pkgdesc="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/latest/linux-x64/stable
${pkgname}.desktop
)
source_i686=(code_ia32_${pkgver}.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-ia32/stable
${pkgname}.desktop
)
md5sums_x86_64=('87ba1a58c33100e0184e1deb7c599c11'
'b5d0d40f5f22b4efb0b3d05c287f8704')
md5sums_i686=('5a0145f7df69d92cbc1657672ec5d38e'
'b5d0d40f5f22b4efb0b3d05c287f8704')
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
}
|