Username: Password: Remember me
# Maintainer: Francesco Marinucci < franzmari [at] chakralinux [dot] org>
 
pkgname=vscodium-bin
_pkgname=vscodium
pkgver=1.36.1
pkgrel=1
pkgdesc="Visual Studio Code: Editor for building and debugging modern web and cloud applications (official binary version)"
arch=('x86_64')
url="https://github.com/VSCodium/vscodium"
screenshot="https://www.fossmint.com/wp-content/uploads/2019/04/VSCodium-Clone-of-VSCode.png"
license=('MIT')
provides=('vscode' 'visual-studio-code')
replaces=('vscode' 'visual-studio-code-bin' 'vscode-oss')
conflicts=('vscode' 'visual-studio-code-bin' 'vscode-oss')
depends=('fontconfig' 'libxtst' 'gtk3' 'python3' 'cairo' 'alsa-lib' 'nss' 'gcc-libs' 'libnotify' 'libxss' 'gconf' 'libdbusmenu-glib')
optdepends=('gvfs: Needed for move to trash functionality')
source=("https://github.com/VSCodium/vscodium/releases/download/$pkgver/VSCodium-linux-x64-$pkgver.tar.gz"
        "vscodium.desktop")
sha256sums=('f777f216fc5a73ac5efeb590fffec64e5cb346b0359c16a4705c58bae6fec4ab'
            '7275ddd94fc356374ca2a883bd1210863a8f2e5ad2f3e6194a42240941d119a4')
prepare() {
    mkdir -p ${pkgname}
    tar -xf VSCodium-linux-x64-$pkgver.tar.gz -C ${pkgname}
}
 
package() {
    install -d -m755 ${pkgdir}/usr/bin
    install -d -m755 ${pkgdir}/usr/share/{${pkgname},applications,pixmaps}
    cp -r ${pkgname} ${pkgdir}/usr/share
    ln -s /usr/share/${pkgname}/bin/codium ${pkgdir}/usr/bin/codium
    ln -s /usr/share/${pkgname}/bin/codium ${pkgdir}/usr/bin/vscodium
    install -D -m644 $_pkgname.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop
    install -D -m644 ${srcdir}/${pkgname}/resources/app/resources/linux/code.png \
            ${pkgdir}/usr/share/pixmaps/vscodium.png
}