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
.
Pinned Comments