pkgname: prismlauncher pkgver: '11.1.1' pkgrel: '2' pkgdesc: 'Prism Launcher – otwartoźródłowy launcher Minecraft (fork MultiMC)' url: 'https://prismlauncher.org/' arch: x86_64 license: - GPL-3.0-or-later # Pakujemy oficjalne wydanie "Qt6-Portable": zawiera własne biblioteki Qt # i zależności w /opt/prismlauncher/shared/lib (uruchamiane przez static-pie # `sharun`). Dzięki temu nie wymaga kompilacji (a ta wymagałaby submodułu # libnbtplusplus i kompilatora Java do libraries/launcher). depends: [] makedepends: [] source: - 'https://github.com/PrismLauncher/PrismLauncher/releases/download/${pkgver}/PrismLauncher-Linux-Qt6-Portable-${pkgver}.tar.gz' sha256sums: - e21949a8101c1803dbc6f67a2cdad48ba80ede1c133f0d1f2a89da07af09e823 build: | install -d "${PKGDIR}/opt/prismlauncher" # Całe drzewo portable (bez portable.txt – ma korzystać z katalogów XDG). for item in PrismLauncher bin etc lib manifest.txt share shared sharun; do cp -a "$item" "${PKGDIR}/opt/prismlauncher/" done rm -f "${PKGDIR}/opt/prismlauncher/portable.txt" # Usuń komponenty linkujące do bibliotek w wersjach z Ubuntu (soname # niedostępne w PaganOS). `pag` jest fail-closed na requires_so, więc # zostawienie ich zablokowałoby instalację: # - libqtiff.so -> libtiff.so.5 # - gbm/dri_gbm.so -> libgallium-25.2.8-...so find "${PKGDIR}/opt/prismlauncher" -type f -name 'libqtiff.so' -delete rm -f "${PKGDIR}/opt/prismlauncher/shared/lib/gbm/dri_gbm.so" # Wrapper w /usr/bin – CELOWO zwykły plik, nie symlink absolutny # (pag pomija absolutne dowiązania przy instalacji). install -d "${PKGDIR}/usr/bin" printf '%s\n' '#!/bin/sh' 'exec /opt/prismlauncher/PrismLauncher "$@"' \ > "${PKGDIR}/usr/bin/prismlauncher" chmod 755 "${PKGDIR}/usr/bin/prismlauncher" # Integracja z pulpitem: .desktop, ikony, MIME, metainfo, man. install -d "${PKGDIR}/usr/share/applications" "${PKGDIR}/usr/share/icons" \ "${PKGDIR}/usr/share/mime/packages" "${PKGDIR}/usr/share/metainfo" \ "${PKGDIR}/usr/share/man" cp -a share/applications/. "${PKGDIR}/usr/share/applications/" cp -a share/icons/. "${PKGDIR}/usr/share/icons/" cp -a share/mime/packages/. "${PKGDIR}/usr/share/mime/packages/" cp -a share/metainfo/. "${PKGDIR}/usr/share/metainfo/" cp -a share/man/. "${PKGDIR}/usr/share/man/" hooks: post-install: | if command -v update-desktop-database >/dev/null 2>&1; then update-desktop-database -q /usr/share/applications || true fi if command -v gtk-update-icon-cache >/dev/null 2>&1; then gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true fi if command -v update-mime-database >/dev/null 2>&1; then update-mime-database /usr/share/mime || true fi package: | true