I don't think I should perform the check:
_checkoutput="$(ELECTRON_OZONE_PLATFORM_HINT='auto' "$srcdir/usr/lib/$_pkgname/MongoDB Compass$_edition" --no-sandbox --version)"
This check prevents you from updating the package if you're not using the graphical environment. For example, I was updating packages on my laptop remotely (ssh) and got an error when trying to update mongodb-compass:
==> Starting check()...
[32469:0804/084051.389218:ERROR:ui/ozone/platform/x11/ozone_platform_x11.cc:250] Missing X server or $DISPLAY
[32469:0804/084051.389338:ERROR:ui/aura/env.cc:257] The platform failed to initialize. Exiting.
It's not serious. As soon as I have some time, I'll look into whether we can implement another check and recommend it in the repository.
Pinned Comments
dpeukert commented on 2025-05-12 06:08 (UTC)
The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/mongodb-compass