lunalauncher-git

LOW
maintainer Hikari_Nova 0 votes scanned 2026-11-04 10:06:54.832549
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: AndreaFrederica <andreafrederica@outlook.com>
2pkgname=lunalauncher-git
3pkgver=11.0.2.r11406.g9176c13fb
4pkgrel=1
5pkgdesc='A custom Minecraft launcher based on Prism Launcher (git build with bundled YukariConnect)'
6arch=('x86_64')
7url='https://github.com/AndreaFrederica/LunaLauncher'
8license=('GPL-3.0-or-later')
9options=('!debug' '!lto')
10depends=(
11 'gamemode'
12 'hicolor-icon-theme'
13 'java-runtime>=8'
14 'libarchive'
15 'libwebp' # 捆绑的 libqwebp.so 插件在运行期链接它
16 'qrencode'
17 'qt6-base'
18 'qt6-multimedia'
19 'qt6-networkauth'
20 'qt6-svg'
21 'qt6-websockets'
22 'tomlplusplus'
23 'zlib'
24)
25makedepends=(
26 'aspnet-targeting-pack>=10.0' # YukariConnect 引用 Microsoft.AspNetCore.App 框架
27 'clang' # YukariConnect NativeAOT 发布需要
28 'cmake' # meson 以 cmake 方式探测 Qt6
29 'dotnet-sdk>=10.0' # YukariConnect 子项目构建(面向 .NET 10)
30 'git'
31 'jdk21-openjdk' # 上游 Pixi 固定 openjdk 21;JDK 26+ 已移除 java.applet,旧版 MC applet 代码无法编译
32 'meson'
33 'ninja'
34 'pkgconf'
35 'qt6-imageformats' # 构建期拷贝 webp 插件进安装目录
36)
37provides=('lunalauncher')
38conflicts=('lunalauncher')
39source=('git+https://github.com/AndreaFrederica/LunaLauncher.git')
40sha256sums=('SKIP')
41
42pkgver() {
43 cd LunaLauncher
44 local version rev_count short_hash
45 version=$(sed -n "s/^[[:space:]]*version: '\([^']*\)'.*/\1/p" meson.build | head -n1)
46 rev_count=$(git rev-list --count HEAD)
47 short_hash=$(git rev-parse --short HEAD)
48 printf '%s.r%s.g%s\n' "$version" "$rev_count" "$short_hash"
49}
50
51prepare() {
52 cd LunaLauncher
53 git submodule update --init --recursive
54 # 预取 YukariConnect wrap 子项目,保证 build() 阶段无需访问 git 远端。
55 # 注意:dotnet publish 仍需联网还原 NuGet 包,本包不支持离线 chroot 构建。
56 meson subprojects download yukariconnect
57}
58
59build() {
60 # qtpaths6 位于 /usr/lib/qt6/bin(不在 PATH 中),通过上游预留的环境变量
61 # 直接指定 Qt 插件目录,跳过 meson 的 find_program 探测。
62 export LUNA_QT_PLUGIN_DIR="$(/usr/lib/qt6/bin/qtpaths6 --query QT_INSTALL_PLUGINS)"
63
64 # 强制使用 JDK 21 的 javac,避免系统默认 JDK(26+,已移除 java.applet)被选中。
65 export PATH="/usr/lib/jvm/java-21-openjdk/bin:$PATH"
66
67 meson setup build LunaLauncher --prefix=/usr --buildtype=release \
68 -Dbuild_testing=false \
69 -Dbuild_yukari_connect=true \
70 -Dbuild_pcl_download=false \
71 -Dneo_ui=disabled \
72 -Dyggdrasil=disabled \
73 -Dcurseforge_webview=disabled \
74 -Dgamemode=enabled
75 meson compile -C build
76}
77
78package() {
79 DESTDIR="$pkgdir" meson install -C build --no-rebuild
80}
81

Scan history

Scanned at (UTC)SeverityRules
2026-11-04 10:06:54 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion