New package with -bin suffix
This commit is contained in:
34
.SRCINFO
Normal file
34
.SRCINFO
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Generated by mksrcinfo v8
|
||||||
|
# Mon Dec 18 19:13:37 UTC 2017
|
||||||
|
pkgbase = visual-studio-code-bin
|
||||||
|
pkgdesc = Visual Studio Code: Editor for building and debugging modern web and cloud applications (official binary version)
|
||||||
|
pkgver = 1.19.0
|
||||||
|
pkgrel = 3
|
||||||
|
url = https://code.visualstudio.com/
|
||||||
|
arch = x86_64
|
||||||
|
arch = i686
|
||||||
|
license = custom: commercial
|
||||||
|
depends = fontconfig
|
||||||
|
depends = libxtst
|
||||||
|
depends = gtk2
|
||||||
|
depends = python
|
||||||
|
depends = cairo
|
||||||
|
depends = alsa-lib
|
||||||
|
depends = nss
|
||||||
|
depends = gcc-libs
|
||||||
|
depends = libnotify
|
||||||
|
depends = libxss
|
||||||
|
depends = gconf
|
||||||
|
optdepends = gvfs: Needed for move to trash functionality
|
||||||
|
provides = vscode,visualstudiocode
|
||||||
|
source_x86_64 = code_x64_1.19.0.tar.gz::https://vscode-update.azurewebsites.net/1.19.0/linux-x64/stable
|
||||||
|
source_x86_64 = visual-studio-code.desktop
|
||||||
|
sha256sums_x86_64 = 96a40ee148bc5d6bf3498b28067c2f8b32d8522538c0674abfa29984e94d3221
|
||||||
|
sha256sums_x86_64 = 2eec4248cf68a60ab9c5a3930c8ec0c89baa29dacdb767d8981ec8b1d66fa6f2
|
||||||
|
source_i686 = code_ia32_1.19.0.tar.gz::https://vscode-update.azurewebsites.net/1.19.0/linux-ia32/stable
|
||||||
|
source_i686 = visual-studio-code.desktop
|
||||||
|
sha256sums_i686 = a78bcae11d021054c1226b7859e139a9f38daceed7bc806de4f1aca16a6dd50c
|
||||||
|
sha256sums_i686 = 2eec4248cf68a60ab9c5a3930c8ec0c89baa29dacdb767d8981ec8b1d66fa6f2
|
||||||
|
|
||||||
|
pkgname = visual-studio-code-bin
|
||||||
|
|
||||||
42
PKGBUILD
Normal file
42
PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Maintainer: D. Can Celasun <can[at]dcc[dot]im>
|
||||||
|
|
||||||
|
pkgname=visual-studio-code-bin
|
||||||
|
_pkgname=visual-studio-code
|
||||||
|
pkgver=1.19.0
|
||||||
|
pkgrel=3
|
||||||
|
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 nss gcc-libs libnotify libxss gconf)
|
||||||
|
optdepends=('gvfs: Needed for move to trash functionality')
|
||||||
|
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=('96a40ee148bc5d6bf3498b28067c2f8b32d8522538c0674abfa29984e94d3221'
|
||||||
|
'2eec4248cf68a60ab9c5a3930c8ec0c89baa29dacdb767d8981ec8b1d66fa6f2')
|
||||||
|
sha256sums_i686=('a78bcae11d021054c1226b7859e139a9f38daceed7bc806de4f1aca16a6dd50c'
|
||||||
|
'2eec4248cf68a60ab9c5a3930c8ec0c89baa29dacdb767d8981ec8b1d66fa6f2')
|
||||||
|
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
|
||||||
|
}
|
||||||
10
visual-studio-code.desktop
Normal file
10
visual-studio-code.desktop
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Exec=/opt/visual-studio-code/code %f
|
||||||
|
Icon=visual-studio-code
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Name=Visual Studio Code
|
||||||
|
Comment=Editor for building and debugging modern web and cloud applications
|
||||||
|
Categories=Development;WebDevelopment;IDE;Utility;TextEditor;
|
||||||
|
StartupNotify=true
|
||||||
|
StartupWMClass=code
|
||||||
Reference in New Issue
Block a user