blob: 4bf4860527047bb06154bf42bccfb7910c76b6db (
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
72
73
74
75
|
# 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.101.03933
pkgrel=2
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'
'121f2db8a65cfc74c10d3e7c3135b62b66297cf27f8f7f00c3ad29d412e968b7'
'01ba3d33e76804e2346d08f4eda256a29610c9eb59432e4b016d05ad93d901ba'
'63b9f3e07dcfe92f59e851fdeeaed6ee986950672f75cc950489bce67e85d884'
'07f0314b1869e3666f1ba52cd02dd40c841beef11a1ab9ae3246cafd01ef6caa')
sha256sums+=('e622e6bdb70b0cfec57ad9df8717ea023b87e5e215003119b5a1a4d059fcd347')
sha256sums_x86_64=('73fd3eebb9e8b0e0c6bcd15abfd240b1994e38be00aa57119ccd4abdc7d35e89')
sha256sums_aarch64=('ff282dc4fbd7e1f286d6ce0a0fe24275cf8f4dd120e7b27d4585b41a670e7ffe')
source=('vscodium-bin.desktop'
'vscodium-bin-url-handler.desktop'
'vscodium-bin.install'
'vscodium-bin.sh'
'vscodium-bin-wayland.desktop')
source+=("https://raw.githubusercontent.com/VSCodium/vscodium/refs/tags/${pkgver}/src/stable/resources/linux/code.svg")
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 -D -m644 "${srcdir}/code.svg" \
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/vscodium.svg"
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"
}
|