blob: 792c4f3075aa024d816039488f65e014f73fe882 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: Carson Rueter <swurl at swurl dot x y z>
# Maintainer: Icelk <main at icelk.dev>
# Contributor: Cameron Katri <katri.cameron@gmail.com>
# Contributor: Plague-doctor <plague <at>> privacyrequired <<dot>> com >
# Contributor: me at oguzkaganeren dot com dot tr
# Contributor: Rowisi < nomail <at> private <dot> com >
pkgname=vscodium-bin
_pkgname=VSCodium
pkgver=1.96.4.25026
pkgrel=1
pkgdesc="Binary releases of VS Code without MS branding/telemetry/licensing."
arch=('x86_64' 'aarch64')
url="https://github.com/VSCodium/vscodium"
license=('MIT')
depends=(
fontconfig libxtst gtk3 python cairo alsa-lib nss gcc-libs libnotify libxss
'glibc>=2.28-4' bash
)
optdepends=(
'gvfs: For move to trash functionality'
'libdbusmenu-glib: For KDE global menu'
)
provides=('vscode' 'codium' 'vscodium')
conflicts=('vscodium')
install=$pkgname.install
sha256sums=('3a5bc109974fcf408855c13965f6d6be0997655c5b359de0bfd19a678c00844e'
'6eef345b65bf2679c928c763529540435ab9c6e1836917319810a7a2d484ae1b'
'01ba3d33e76804e2346d08f4eda256a29610c9eb59432e4b016d05ad93d901ba'
'63b9f3e07dcfe92f59e851fdeeaed6ee986950672f75cc950489bce67e85d884'
'07f0314b1869e3666f1ba52cd02dd40c841beef11a1ab9ae3246cafd01ef6caa')
sha256sums_x86_64=('c87dd9681a46b6cf69cc165eceabbd80987f1649fa695d66a4031cb4d2a2b124')
sha256sums_aarch64=('1175b1ba126ea864364a0e0ca4984796efa301a72cc0f271e0d578a2e7713e55')
source=('vscodium-bin.desktop'
'vscodium-bin-url-handler.desktop'
'vscodium-bin.install'
'vscodium-bin.sh'
'vscodium-bin-wayland.desktop')
source_x86_64=("https://github.com/VSCodium/vscodium/releases/download/${pkgver}/${_pkgname}-linux-x64-${pkgver}.tar.gz")
source_aarch64=("https://github.com/VSCodium/vscodium/releases/download/${pkgver}/${_pkgname}-linux-arm64-${pkgver}.tar.gz")
shopt -s extglob
package() {
install -d -m755 "${pkgdir}/opt/${pkgname}"
install -d -m755 "${pkgdir}/usr/bin"
install -d -m755 "${pkgdir}/usr/share/"{applications,pixmaps}
cp -r "${srcdir}"/!(vscodium-bin?(-url-handler).desktop|${_pkgname}-linux-@(x|arm)64-${pkgver}.tar.gz) "${pkgdir}/opt/${pkgname}"
ln -s "/opt/${pkgname}/bin/codium" "${pkgdir}/usr/bin/codium"
ln -s "/opt/${pkgname}/bin/codium" "${pkgdir}/usr/bin/vscodium"
install -D -m644 "${srcdir}/vscodium-bin.desktop" "${pkgdir}/usr/share/applications/codium.desktop"
install -D -m644 "${srcdir}/vscodium-bin-wayland.desktop" "${pkgdir}/usr/share/applications/codium-wayland.desktop"
install -D -m644 "${srcdir}/vscodium-bin-url-handler.desktop" "${pkgdir}/usr/share/applications/codium-url-handler.desktop"
install -D -m644 "${srcdir}/resources/app/resources/linux/code.png" \
"${pkgdir}/usr/share/pixmaps/vscodium.png"
install -D -m644 "${srcdir}/resources/app/resources/linux/code.png" \
"${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/vscodium.png"
install -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/codium"
# Fix chrome-sandbox permissions
chown root "${pkgdir}/opt/${pkgname}/chrome-sandbox"
chmod 4755 "${pkgdir}/opt/${pkgname}/chrome-sandbox"
# Symlink shell completions
install -d -m755 "${pkgdir}/usr/share/zsh/site-functions"
install -d -m755 "${pkgdir}/usr/share/bash-completion/completions"
ln -s "/opt/${pkgname}/resources/completions/zsh/_codium" "${pkgdir}/usr/share/zsh/site-functions"
ln -s "/opt/${pkgname}/resources/completions/bash/codium" "${pkgdir}/usr/share/bash-completion/completions"
}
|