56 lines
2.6 KiB
Plaintext
56 lines
2.6 KiB
Plaintext
# Maintainer: Carson Rueter <roachh at proton mail dot com>
|
|
# 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.73.1.22314
|
|
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'
|
|
)
|
|
optdepends=(
|
|
'gvfs: For move to trash functionality'
|
|
'libdbusmenu-glib: For KDE global menu'
|
|
)
|
|
provides=('vscode' 'codium' 'vscodium')
|
|
conflicts=('vscodium')
|
|
|
|
sha256sums=('a665ef6e2a1711df2552d7ae49fd7f30f7a2d7e0dea71c7c5f4c90764d8c37ce'
|
|
'fd6b46c021e4f0b75d27fcf67481019dbbaa7059ea186437a47a6b6ae8bb574f')
|
|
sha256sums_x86_64=('b97abd27933900990088e578119432bf6f575c866e2c86061f9b3a101ec4d527')
|
|
sha256sums_aarch64=('5fcedc8c4b27da8ca12c19788e3e202e53d8e6c4c206ca8d167e0fba37ef1c9e')
|
|
source=('vscodium-bin.desktop'
|
|
'vscodium-bin-uri-handler.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?(-uri-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-uri-handler.desktop ${pkgdir}/usr/share/applications/codium-uri-handler.desktop
|
|
install -D -m644 ${srcdir}/resources/app/resources/linux/code.png \
|
|
${pkgdir}/usr/share/pixmaps/vscodium.png
|
|
|
|
# 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
|
|
}
|