chore(merge): bring fix/installer-wizard up to date with Main
Main replaced WinBoat with PacManager 1.6.2 (fetched from the public Gitea, installed under /opt and shipped in the live image) and added the install progress steps, the Vulkan-per-GPU fix and the default emoji font. This branch keeps everything that is specific to it: Intel RST/VMD handling (fws-intel-rst, --no-nvram in the kickstart and fws-grub-finalize, the ESP lookup fix), the Broadcom wl driver, fws-bugreport and the step-by-step wizard. Where the two sides disagreed on PacManager, Main wins: the vendored 1.4.3 tarball, the FWS launcher and the target-only install block (build.sh and kickstart) are dropped, since the package now ships in packages.x86_64 and the LiveOS payload copies it to the target. Launchers call PacManager, the binary Main's package exposes on PATH.
This commit is contained in:
commit
423dcc66dc
37 files changed
+1836
-258
No files matched your search
@@ -1,126 +1,59 @@
|
||||
# Maintainer: FWS
|
||||
# ============================================================================
|
||||
# fws-pacmanage — PacManager, le gestionnaire de paquets graphique de FWS.
|
||||
#
|
||||
# Source VENDUE dans le dépôt (même choix que fws-dnd) : le dépôt amont
|
||||
# FWS-PacManage vit sur un Gitea PRIVÉ, makepkg ne peut donc pas la
|
||||
# télécharger pendant le build. Le tarball est régénéré depuis les sources à
|
||||
# chaque montée de version (cf. « Mise à jour » plus bas).
|
||||
#
|
||||
# MISE À JOUR :
|
||||
# 1. bump du fichier « version » côté FWS-PacManage
|
||||
# 2. tar --transform 's,^fws-pacmanage,fws-pacmanage-<v>,' \
|
||||
# -C <parent> -czf pkgbuilds/fws-pacmanage/fws-pacmanage-<v>.tar.gz \
|
||||
# fws-pacmanage (sans build/ ni .git/)
|
||||
# 3. pkgver ci-dessous, retirer l'ancien tarball, puis
|
||||
# ./setup-aur.sh && ./build.sh
|
||||
#
|
||||
# ⚠ LE FICHIER « version » DE L'AMONT EST EN RETARD. Les livraisons 1.4.2 et
|
||||
# 1.4.3 contenaient toutes deux « 1.4.1 ». Or CMake compile cette valeur dans
|
||||
# le binaire et UpdateManager la compare aux releases du Gitea : la laisser
|
||||
# telle quelle ferait proposer une mise à jour déjà installée, pour toujours.
|
||||
# Le prepare() ci-dessous la réaligne sur pkgver. Le tarball reste une copie
|
||||
# FIDÈLE de ce que l'amont a livré — la correction est ici, en un seul
|
||||
# endroit, visible. À régler côté FWS-PacManage pour pouvoir la retirer.
|
||||
# ============================================================================
|
||||
pkgname=fws-pacmanage
|
||||
pkgver=1.4.3
|
||||
pkgver=1.6.2
|
||||
pkgrel=1
|
||||
pkgdesc="PacManager — gestionnaire de paquets graphique de FWS (pacman + Flatpak + AUR, Qt6)"
|
||||
pkgdesc="PacManager — gestionnaire de paquets graphique FWS (Qt6, sur pacman)"
|
||||
arch=('x86_64')
|
||||
url="https://gitea.nocode-var.tech/FWS/FWS-PacManage"
|
||||
license=('MIT')
|
||||
# qt6-base fournit Widgets ET Network (UpdateManager interroge l'API du Gitea).
|
||||
# sudo : les opérations privilégiées passent par « sudo -S » avec le mot de
|
||||
# passe de session (cf. include/pacman-manager.h), pas par polkit.
|
||||
depends=('qt6-base' 'pacman' 'sudo')
|
||||
# Les fournisseurs Flatpak et AUR sont des PLUGINS chargés au démarrage : sans
|
||||
# leur outil, l'application marche et affiche simplement « Indisponible » pour
|
||||
# cette source (cf. AurManager::isAvailable, qui cherche yay puis paru).
|
||||
optdepends=('flatpak: gestion des paquets Flatpak'
|
||||
'yay: gestion des paquets AUR'
|
||||
'paru: gestion des paquets AUR (alternative à yay)')
|
||||
# FWS owns PacManager; the upstream LICENSE is source-available, not free.
|
||||
license=('custom')
|
||||
depends=('qt6-base' 'zlib' 'pacman')
|
||||
makedepends=('cmake' 'gcc')
|
||||
source=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${pkgname}.desktop")
|
||||
sha256sums=('SKIP'
|
||||
'SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
# Réaligne la version de la source sur celle du paquet (cf. l'avertissement
|
||||
# en tête). À faire AVANT cmake : le fichier est lu au configure, pas au
|
||||
# build. Sans ça le binaire annoncerait 1.4.1 quand pacman dit 1.4.3.
|
||||
printf '%s\n' "$pkgver" > version
|
||||
}
|
||||
# Pinned to the commit the V1.6.2 tag points at instead of the tag name: a sha
|
||||
# keeps the archive reproducible even if the tag is moved (V1.6.2).
|
||||
_commit=d27792975ed572d7ba4c617d910d10e017fd0649
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://gitea.nocode-var.tech/FWS/FWS-PacManage/archive/${_commit}.tar.gz")
|
||||
sha256sums=('be6be117c7ac55a6d4ff8d95967eea80f972d4edaf2c3f4737673d58063b6c59')
|
||||
|
||||
# The whole app lives under /opt/fws-pacmanage because it updates itself: the
|
||||
# self-update replaces the binary, the `version` marker and the plugins in the
|
||||
# directory of the running executable. A real prefix keeps those files out of
|
||||
# /usr/bin (a bare `bin` install would drop /usr/bin/version and /usr/bin/plugins).
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
# Les greffons d'EXEMPLE n'ont d'intérêt que pour les développeurs de
|
||||
# greffons ; Flatpak et AUR sont de vraies sources de paquets, activées.
|
||||
cmake -B build \
|
||||
cmake -S "${srcdir}/${pkgname}" -B "${srcdir}/build" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_PREFIX=/opt/fws-pacmanage \
|
||||
-DFWS_BUILD_FLATPAK_PLUGIN=ON \
|
||||
-DFWS_BUILD_AUR_PLUGIN=ON \
|
||||
-DFWS_BUILD_EXAMPLE_PLUGIN=OFF \
|
||||
-DFWS_BUILD_EXAMPLE_ADDON=OFF
|
||||
cmake --build build -j"$(nproc)"
|
||||
-DFWS_BUILD_AUR_PLUGIN=ON
|
||||
cmake --build "${srcdir}/build" -j"$(nproc)"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
DESTDIR="${pkgdir}" cmake --install "${srcdir}/build"
|
||||
|
||||
# POURQUOI /usr/lib et pas /usr/bin : PluginManager cherche ses greffons dans
|
||||
# « applicationDirPath()/plugins » (src/plugin-manager.cpp). Installer le
|
||||
# binaire dans /usr/bin imposerait donc un dossier /usr/bin/plugins, ce qui
|
||||
# pollue un répertoire du PATH. On garde binaire + greffons ensemble dans un
|
||||
# dossier privé, et on expose une seule commande par lien symbolique : Qt
|
||||
# résout /proc/self/exe, applicationDirPath() renvoie donc bien /usr/lib/…
|
||||
# et les greffons sont trouvés.
|
||||
install -Dm755 build/PacManager "${pkgdir}/usr/lib/${pkgname}/PacManager"
|
||||
|
||||
# UpdateManager::currentVersion() lit le fichier « version » posé À CÔTÉ de
|
||||
# l'exécutable, et retient la PLUS HAUTE des deux valeurs (celle-ci et celle
|
||||
# compilée dans le binaire). L'oublier n'est pas grave ici — les deux sont
|
||||
# identiques — mais l'amont l'installe (install(FILES version DESTINATION
|
||||
# bin)) et son absence ferait diverger les deux sources au prochain bump.
|
||||
install -Dm644 version "${pkgdir}/usr/lib/${pkgname}/version"
|
||||
|
||||
# Les greffons sont RAMASSÉS, pas listés : la règle POST_BUILD de CMake dépose
|
||||
# chaque bibliothèque MODULE construite dans build/plugins/, et PluginManager
|
||||
# y scanne simplement « *.so ». Une liste figée ici obligerait à modifier ce
|
||||
# PKGBUILD à chaque nouveau fournisseur amont (l'AUR est arrivé en 1.4).
|
||||
local _found=0 _plugin
|
||||
for _plugin in build/plugins/*.so; do
|
||||
[ -f "$_plugin" ] || continue
|
||||
install -Dm755 "$_plugin" \
|
||||
"${pkgdir}/usr/lib/${pkgname}/plugins/$(basename "$_plugin")"
|
||||
_found=$((_found + 1))
|
||||
done
|
||||
if [ "$_found" -eq 0 ]; then
|
||||
echo "ERREUR : aucun greffon dans build/plugins/ après compilation" >&2
|
||||
return 1
|
||||
fi
|
||||
echo "==> $_found greffon(s) installé(s)."
|
||||
# The upstream CMakeLists declares its plugin install() rules ABOVE the
|
||||
# FWS_BUILD_*_PLUGIN option() calls, so both are undefined there and
|
||||
# `cmake --install` never ships the providers. Install the built modules by
|
||||
# hand into the first search path, which is also where the self-update
|
||||
# refreshes them (<prefix>/bin/plugins).
|
||||
install -d "${pkgdir}/opt/fws-pacmanage/bin/plugins"
|
||||
install -m755 "${srcdir}/build/plugins/"*.so \
|
||||
"${pkgdir}/opt/fws-pacmanage/bin/plugins/"
|
||||
|
||||
# Entry point outside the self-updating tree: launchers and shells find it on
|
||||
# PATH while the update keeps rewriting /opt/fws-pacmanage/bin.
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
ln -s "/usr/lib/${pkgname}/PacManager" "${pkgdir}/usr/bin/${pkgname}"
|
||||
ln -s /opt/fws-pacmanage/bin/PacManager "${pkgdir}/usr/bin/PacManager"
|
||||
|
||||
# Intégration bureau : on garde CELUI DE FWS et pas celui de l'amont.
|
||||
# L'amont en génère un depuis CMakeLists (org.fws.PacManager.desktop), mais
|
||||
# il pointe sur ${prefix}/bin/PacManager — un chemin que ce paquet n'a pas —
|
||||
# et son icône (resources/icons/package.svg) est une icône d'INTERFACE 24 px
|
||||
# au trait clair CODÉ EN DUR (#c8d3f5) : invisible dans un menu sur thème
|
||||
# clair. D'où « Icon=system-software-install », un nom standard présent
|
||||
# partout. À revoir le jour où le projet aura une vraie icône d'application.
|
||||
install -Dm644 "${srcdir}/${pkgname}.desktop" \
|
||||
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
||||
# Launchers only read /usr/share; the prefix copies stay in /opt.
|
||||
install -Dm644 "${pkgdir}/opt/fws-pacmanage/share/applications/org.fws.PacManager.desktop" \
|
||||
"${pkgdir}/usr/share/applications/org.fws.PacManager.desktop"
|
||||
install -Dm644 "${pkgdir}/opt/fws-pacmanage/share/icons/hicolor/scalable/apps/org.fws.PacManager.svg" \
|
||||
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/org.fws.PacManager.svg"
|
||||
|
||||
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
||||
# doc/ est arrivé en 1.4.3 : installation, interface, dépannage, magasin
|
||||
# de greffons. Dix fichiers markdown, utiles à qui cherche pourquoi une
|
||||
# source est indisponible — autant les avoir sur la machine.
|
||||
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/doc" doc/*.md
|
||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
# Restrictive upstream license (FWS, all rights reserved): the notice has to
|
||||
# travel with the redistributed binary.
|
||||
|
||||
install -Dm644 "${srcdir}/${pkgname}/LICENSE" \
|
||||
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
Binary file not shown.
@@ -1,29 +0,0 @@
|
||||
[Desktop Entry]
|
||||
# Lanceur fourni par FWS. L'amont en génère bien un depuis la 1.4
|
||||
# (org.fws.PacManager.desktop, écrit par CMakeLists), mais il pointe sur
|
||||
# ${prefix}/bin/PacManager — un chemin que le paquet FWS n'a pas, puisqu'il
|
||||
# range le binaire dans /usr/lib/fws-pacmanage/ pour garder ses greffons à
|
||||
# côté. Celui-ci est donc conservé : bon Exec, libellés français, et des
|
||||
# Keywords pour que rofi/wofi (Super+R) le trouvent.
|
||||
#
|
||||
# Icon : nom d'icône standard, présent dans tous les thèmes. L'amont installe
|
||||
# resources/icons/package.svg comme icône d'application, mais c'est une icône
|
||||
# d'INTERFACE 24 px au trait clair CODÉ EN DUR (#c8d3f5) : invisible dans un
|
||||
# menu sur thème clair. À revoir le jour où le projet aura une vraie icône.
|
||||
Type=Application
|
||||
# ATTENTION : « Version » est la version de la SPÉCIFICATION Desktop Entry
|
||||
# (1.0 à 1.5), PAS celle de l'application — y mettre 1.2.1 fait échouer
|
||||
# desktop-file-validate : « value "1.2.1" is not a known version ».
|
||||
Version=1.0
|
||||
Name=Gestionnaire de paquets
|
||||
Name[en]=Package Manager
|
||||
GenericName=Gestionnaire de paquets
|
||||
GenericName[en]=Package Manager
|
||||
Comment=Rechercher, installer et mettre à jour les logiciels
|
||||
Comment[en]=Search, install and update software
|
||||
Exec=fws-pacmanage
|
||||
Icon=system-software-install
|
||||
Terminal=false
|
||||
Categories=System;PackageManager;
|
||||
Keywords=paquet;paquets;logiciel;pacman;flatpak;installer;mise à jour;package;software;update;
|
||||
StartupNotify=true
|
||||
Reference in new issue
Block a user