Package Details: mattermost-desktop-git 5.12.0.c9514850-1

Git Clone URL: https://aur.archlinux.org/mattermost-desktop-git.git (read-only, click to copy)
Package Base: mattermost-desktop-git
Description: Mattermost Desktop for Linux (git)
Upstream URL: https://github.com/mattermost/desktop
Licenses: Apache
Conflicts: mattermost-desktop
Provides: mattermost-desktop
Submitter: Neferin
Maintainer: Neferin
Last Packager: Neferin
Votes: 0
Popularity: 0.000000
First Submitted: 2023-01-31 07:54 (UTC)
Last Updated: 2025-02-10 15:30 (UTC)

Latest Comments

lifespirit commented on 2026-06-08 09:48 (UTC) (edited on 2026-06-08 09:48 (UTC) by lifespirit)

Fixed PKGBUILD

# Maintainer: Julian Pollinger <julian@pollinger.dev>

pkgname=mattermost-desktop-git
_pkgname=mattermost-desktop
pkgver=6.3.0.1a4d3d9
pkgrel=1
pkgdesc="Mattermost Desktop for Linux (git)"
arch=('x86_64')

url="https://github.com/mattermost/desktop"
license=('Apache')
_electron=electron42

makedepends=('jq' 'nodejs' 'npm' 'git' 'asar' 'rpm-tools' 'moreutils')
depends=($_electron 'libxcrypt-compat' 'alsa-lib' 'gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'libutil-linux' 'libappindicator-gtk3' 'libsecret')
optdepends=()

conflicts=('mattermost-desktop')
provides=("${_pkgname}")

source=('git+https://github.com/mattermost/desktop.git#branch=master' ${_pkgname}.desktop ${_pkgname}.sh)
sha256sums=('SKIP'
            '29d8bdc503ec71d69efa8b73655a230df00c18667c875a73cb8de31a6d86dd2a'
            '1c2bf48b6397d04a5a536c5c9f4960db53249c838c380f03f808c612b00ba4c6')

prepare() {

    cd 'desktop'

    sed -e "s/@ELECTRON@/$_electron/" "../$_pkgname.sh" > "$_pkgname.sh"

    local _electronVersion="$(< "/usr/lib/$_electron/version")"

    jq '        .devDependencies["electron"] = $electronVersion |
                del(.devDependencies["electron-rebuild"]) |
                .config.target = $electronVersion |
                .config.runtime = $electronRuntime' \
                        --arg electronRuntime "$_electron" \
                        --arg electronVersion "$_electronVersion" \
                        package.json |
                sponge package.jsons
          sed -i -e '/package:/s/tar.gz deb rpm/dir/' package.json


    _npmargs="--cache $srcdir/npm-cache --no-audit --no-fund"

    CFLAGS="-Wno-implicit-function-declaration" npm $_npmargs install
}

build() {
    cd 'desktop'

    export NODE_ENV=production
    _npmargs="--cache $srcdir/npm-cache --no-audit --no-fund"

    npm $_npmargs --offline run build-prod 
    npx electron-builder --linux tar.gz --x64 --publish=never
}

package() {
  cd 'desktop'

  install -Dm0644 -t "$pkgdir/usr/lib/$_pkgname/" release/linux-unpacked/resources/app.asar
        cp -a release/linux-unpacked/resources/app.asar.unpacked "$pkgdir/usr/lib/$_pkgname/"
        install -Dm0644 -t "$pkgdir/usr/share/licenses/$_pkgname/" LICENSE.txt
        install -Dm0644 src/assets/linux/app_icon.png "$pkgdir/usr/share/icons/$_pkgname.png"
        install -Dm0755 "$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
        install -Dm0644 -t "$pkgdir/usr/share/applications/" "$srcdir/$_pkgname.desktop"

}

pkgver() {
  cd 'desktop'
  echo -e "$(cat package.json | jq '.version' | sed 's/\"//' | sed 's/.develop.*//').$(git rev-parse --short HEAD)" | sed 's/v//' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

grosjo commented on 2026-04-08 09:03 (UTC)

electron40 ?

Neferin commented on 2025-02-10 15:30 (UTC)

@dreieck Done :)

dreieck commented on 2025-02-09 15:42 (UTC)

Dependency `electron29' is old.

Can you check if there is any newer version of electron which works with this, and update the dependency to the newest supported version?

Regards and thanks for the package!

vawaver commented on 2024-11-20 19:32 (UTC)

I cannot install this app from AUR on my CachyOS.

./src/main/preload/internalAPI.js + 2 modules 19.7 KiB [not cacheable] [built] [code generated]
  ./src/main/preload/externalAPI.ts + 2 modules 15 KiB [not cacheable] [built] [code generated]
webpack 5.90.3 compiled successfully in 1473 ms
assets by status 3 MiB [cached] 90 assets
orphan modules 1.69 MiB (javascript) 1.81 MiB (asset) 27.1 KiB (runtime) [orphan] 659 modules
runtime modules 43.5 KiB 70 modules
cacheable modules 269 KiB (css/mini-extract) 2.24 MiB (javascript) 235 KiB (asset) 464 modules

ERROR in ./src/renderer/components/NewServerModal.tsx + 2 modules
Unexpected end of JSON input

ERROR in ./src/renderer/downloadsDropdown.tsx + 14 modules
Unexpected end of JSON input

ERROR in ./src/renderer/downloadsDropdownMenu.tsx + 1 modules
Unexpected end of JSON input

ERROR in ./src/renderer/dropdown.tsx + 2 modules
Unexpected end of JSON input

ERROR in ./src/renderer/index.tsx + 16 modules
Unexpected end of JSON input

ERROR in ./src/renderer/modals/certificate/certificate.tsx + 7 modules
Unexpected end of JSON input

ERROR in ./src/renderer/modals/loadingScreen/index.tsx + 9 modules
Unexpected end of JSON input

ERROR in ./src/renderer/modals/login/login.tsx + 6 modules
Unexpected end of JSON input

ERROR in ./src/renderer/modals/permission/permission.tsx + 8 modules
Unexpected end of JSON input

ERROR in ./src/renderer/modals/removeServer/removeServer.tsx + 4 modules
Unexpected end of JSON input

ERROR in ./src/renderer/modals/settings/settings.tsx + 5 modules
Unexpected end of JSON input

ERROR in ./src/renderer/modals/welcomeScreen/welcomeScreen.tsx + 24 modules
Unexpected end of JSON input

ERROR in ./node_modules/react-beautiful-dnd/dist/react-beautiful-dnd.esm.js + 32 modules
Unexpected end of JSON input

ERROR in ./node_modules/react-bootstrap/esm/OverlayTrigger.js + 66 modules
Unexpected end of JSON input

ERROR in ./node_modules/react-select/dist/react-select.esm.js + 34 modules
Unexpected end of JSON input

15 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.90.3 compiled with 15 errors in 12167 ms
ERROR: "build:renderer" exited with 1.
ERROR: "build" exited with 1.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'mattermost-desktop-git-5.9.0.fb43846d-1':
error: packages failed to build: mattermost-desktop-git-5.9.0.fb43846d-1