1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-12-22 12:11:06 +01:00

feat: visual studio code

This commit is contained in:
Jozef Steinhübl 2024-03-29 09:07:18 +01:00
parent ef47fd365f
commit e351c5dafd
3 changed files with 60 additions and 3 deletions

View file

@ -1,7 +1,27 @@
## The XBPS source packages collection
## Hyro's XBPS source packages collection
This repository contains the XBPS source packages collection to build binary packages
for the Void Linux distribution.
This repository contains my personal, non-upstreamed packages.
## Basic build instructions
```
$ ./xbps-src binary-bootstrap
$ ./xbps-src pkg <package-name>
```
To install a package, first build it, then use `xi` from `xtools`:
```
$ xi <package-name>
```
`After building and installing a package, consider running`
```
$ git clean -dfx
```
## Packages
- [vesktop](./srcpkgs/vesktop) → https://github.com/Vencord/Vesktop/
The included `xbps-src` script will fetch and compile the sources, and install its
files into a `fake destdir` to generate XBPS binary packages that can be installed

View file

@ -0,0 +1,11 @@
#!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
# Allow users to override command-line options
if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
fi
# Launch
exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS

View file

@ -0,0 +1,26 @@
# Template file for 'visual-studio-code-bin'
pkgname=visual-studio-code
version=1.87.2
revision=1
archs="x86_64"
provides="code"
hostmakedepends=""
makedepends=""
depends="libxkbfile gnupg gtk+3 libsecret nss libnotify glibc lsof shared-mime-info xdg-utils alsa-lib"
short_desc="Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version)"
maintainer="Jozef Steinhübl <xhyrom.hyro@gmail.com>"
license="custom: commercial"
homepage="https://code.visualstudio.com/"
distfiles="https://update.code.visualstudio.com/${version}/linux-x64/stable>code_x86_${version}.tar.gz"
checksum="c2e97cdc63ff1bcbfbb10c227b5398623d21f21e487108fa1d740dabe7d37985"
do_install() {
vmkdir "opt/${pkgname}"
vlicense "resources/app/LICENSE.rtf"
vcopy "*" "opt/${pkgname}"
vinstall "${FILESDIR}/code" 755 "usr/bin"
}