# Maintainer: Baptiste Augrain . # Inspired from the PKGBUILD for vscodium-bin. pkgname=mrcode-bin pkgver=1.82.0.23253 pkgrel=1 pkgdesc="A custom build of VSCodium / VSCode (binary release)" arch=('x86_64' 'aarch64' 'armv7h') url='https://github.com/zokugun/MrCode.git' license=('MIT') depends=( 'fontconfig' 'libxtst' 'gtk3' 'cairo' 'alsa-lib' 'nss' 'gcc-libs' 'libnotify' 'libxss' 'glibc>=2.28-4' 'libxkbfile' ) optdepends=( 'gvfs: For move to trash functionality' 'libdbusmenu-glib: For KDE global menu' ) provides=('mrcode') conflicts=( 'mrcode' 'mrcode-git' ) source=( 'mrcode.desktop' ) source_x86_64=( "https://github.com/zokugun/MrCode/releases/download/${pkgver}/MrCode-linux-x64-${pkgver/+/.}.tar.gz" ) source_armv7h=( "https://github.com/zokugun/MrCode/releases/download/${pkgver}/MrCode-linux-armhf-${pkgver/+/.}.tar.gz" ) source_aarch64=( "https://github.com/zokugun/MrCode/releases/download/${pkgver}/MrCode-linux-arm64-${pkgver/+/.}.tar.gz" ) sha256sums=('362ef9b395929a66442f60be0e238ac69afbbda07728e4121c352fdea236af92') sha256sums_x86_64=('52b27f3a2115e3de5ebe53f358cb9e5ffdf734f16cce0d313f427871fc67c420') sha256sums_aarch64=('cf60fb1e6ea42304df525ac25a95be31868827bd4155b2bfb4d2bed993d8b926') sha256sums_armv7h=('d354bb476c57b2385d8939e2238d07ccc23bebb24f083cafe812d9c2353d5905') shopt -s extglob package() { install -d -m755 ${pkgdir}/usr/bin install -d -m755 ${pkgdir}/usr/share/{mrcode,applications,pixmaps} install -d -m755 ${pkgdir}/usr/share/licenses/mrcode cp -r ${srcdir}/resources/app/LICENSE.txt ${pkgdir}/usr/share/licenses/mrcode cp -r ${srcdir}/!(mrcode.desktop|MrCode-*-${pkgver/+/.}.tar.gz) ${pkgdir}/usr/share/mrcode ln -s /usr/share/mrcode/bin/mrcode ${pkgdir}/usr/bin/mrcode install -D -m644 mrcode.desktop ${pkgdir}/usr/share/applications/mrcode.desktop install -D -m644 ${srcdir}/resources/app/resources/linux/code.png ${pkgdir}/usr/share/pixmaps/mrcode.png }