Package Details: moonlight-qt 6.1.0-1

Git Clone URL: https://aur.archlinux.org/moonlight-qt.git (read-only, click to copy)
Package Base: moonlight-qt
Description: GameStream client for PCs (Windows, Mac, and Linux)
Upstream URL: https://moonlight-stream.org
Licenses: GPL-3.0-or-later
Submitter: mherzberg
Maintainer: LibertyGM
Last Packager: LibertyGM
Votes: 44
Popularity: 0.93
First Submitted: 2018-08-08 23:11 (UTC)
Last Updated: 2024-09-18 00:28 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

rubin55 commented on 2024-06-07 11:17 (UTC) (edited on 2024-06-07 11:22 (UTC) by rubin55)

Here's a diff for your pkg-build to make it directly fetch the git tag for the version specified in pkgver, which makes the submodule update work normally (I also took the liberty to fix a few dependencies. Vulkan headers are never runtime dependencies, for example, plus the mixed qt5/qt6 dependencies):

diff --git a/PKGBUILD b/PKGBUILD
index 286b384..663dcef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,22 +9,24 @@ pkgdesc='GameStream client for PCs (Windows, Mac, and Linux)'
 arch=('x86_64')
 license=('GPL-3.0-or-later')
 url='https://moonlight-stream.org'
-depends=('qt6-base' 'qt5-quickcontrols2' 'qt5-svg' 'ffmpeg' 'sdl2_ttf' 'vulkan-headers' 'vulkan-tools')
-makedepends=('git')
+depends=('qt6-base' 'qt6-quickcontrols2' 'qt6-svg' 'ffmpeg' 'sdl2_ttf' 'vulkan-tools')
+makedepends=('git' 'pkg-config' 'vulkan-headers')
 optdepends=('libva-intel-driver: hardware acceleration for Intel GPUs')
-source=("https://github.com/moonlight-stream/${pkgname}/releases/download/v${pkgver}/MoonlightSrc-${pkgver}.tar.gz")
-sha256sums=('07655598f82d607dbf20b484a45a46db2496764a4bbb7a18e66f066564a83b89')
+source=($pkgname::"git+https://github.com/moonlight-stream/${pkgname%-git}.git#tag=v${pkgver}")
+sha256sums=(SKIP)

 prepare() {
-  cd "${srcdir}/"
+  cd "${srcdir}/moonlight-qt"
   git submodule update --init --recursive
   qmake PREFIX="$pkgdir/usr" moonlight-qt.pro
 }

 build() {
+  cd "${srcdir}/moonlight-qt"
   make release
 }

 package() {
+  cd "${srcdir}/moonlight-qt"
   make install
 }

Comments wrong:

$ git log |head -n18
commit c27a14d627c00dae37f9c0ab8206e0d91bfebdf9
Author: Konstantin Liberty <jon9097 at gmail dot com>
Date:   Fri Jun 7 06:26:20 2024 +0300

    Update to version 5.0.0-3. Add git submodule update

commit c579cb66e48285a86d0e7b88414221b39010688a
Author: Konstantin Liberty <jon9097 at gmail dot com>
Date:   Thu Jun 6 21:48:22 2024 +0300

    Update to version 5.0.0-2

commit c84a2360d764872ecba5338f11b1def17fd5cacc
Author: Konstantin Liberty <jon9097 at gmail dot com>
Date:   Thu Jun 6 20:14:42 2024 +0300

    Update to version 5.0.0

You mention 5.0.0, instead of 6.0.0.

LibertyGM commented on 2024-06-07 11:14 (UTC) (edited on 2024-06-07 11:15 (UTC) by LibertyGM)

I rewrote pkgbuild according to the instructions on the project page. It says what needs to be done. "2 Run git submodule update --init --recursive from within moonlight-qt/". I have everything going. I'll see what else I can do. And where are the comments wrong?

rubin55 commented on 2024-06-07 10:56 (UTC) (edited on 2024-06-07 11:01 (UTC) by rubin55)

Same problem as @ivanmara, I can't build this; are you sure there's a .git directory in the tar.gz you unpack? also, why tar.gz if you're building from git anyway? Lastly, your git commit comments are wrong (they don't specify the right version as in PKGBUILD).

How I build: cd into git clone of this package, makepkg -cCs

Edit: I REALLY don't see how this can work; the source is the MoonLightSrc package, which is not a git repository, so you can't do an submodule update on that.

LibertyGM commented on 2024-06-07 10:54 (UTC) (edited on 2024-06-07 10:55 (UTC) by LibertyGM)

ivanmara, how exactly do you install? I checked on 4 PCs, everything is going fine. I used "paru -S moonlight-qt" and built using "makepkg -sricCf". It is not going to be chrooted only. It is being collected in the system.

ivanmara commented on 2024-06-07 09:53 (UTC) (edited on 2024-06-07 10:22 (UTC) by ivanmara)

New update moonlight-qt 6.0.0-3 doesn't install with errors:

...
==> Extracting sources...
  -> Extracting MoonlightSrc-6.0.0.tar.gz with bsdtar
==> Starting prepare()...
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: moonlight-qt-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
moonlight-qt - exit status 4

But 6.0.0-2 installed correctly.

Probably the problem is in the lines in PKGBUILD:

  cd "${srcdir}/"
  git submodule update --init --recursive

What can i do ?

LibertyGM commented on 2024-06-06 19:19 (UTC)

I have finalized and checked everything in the Chroot, everything is assembled and works fine.

LibertyGM commented on 2024-06-06 17:50 (UTC)

Hello. Explain why qconf is needed here? I've been building on several PCs and everything is going great. I'll test it again.

martyg commented on 2024-06-06 17:36 (UTC)

Thank you for adopting this package. A couple of issues with 6.0.0-1:

  1. Need to add qconf to makedepends

  2. Build aborts on QT6 Project ERROR: Unknown module(s) in QT: quick quickcontrols2 svg make: *** [Makefile:331: sub-app-release] Error 3

Suggest you retest in a clean choot environment Ref. https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

Thanks again for volunteering to maintain this.

cgirard commented on 2024-06-06 07:18 (UTC)

Orphaning it as I no longer use it and thus cannot test properly new release.