🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
pkgname: heroic-games-launcher
pkgver: '2.22.4'
pkgrel: '2'
pkgdesc: 'Heroic Games Launcher – launcher dla Epic Games, GOG i Amazon Games'
url: 'https://heroicgameslauncher.com/'
arch: x86_64
license:
- GPL-3.0-or-later
# Aplikacja Electron (Chromium) – zależności runtime jak dla Chrome/Electron.
depends:
- ca-certificates
- desktop-file-utils
- gtk-update-icon-cache
- hicolor-icon-theme
- shared-mime-info
- xdg-utils
- wget
- curl
- nss
- nspr
- at-spi2-core
- alsa-lib
- cairo
- cups
- dbus
- expat
- freetype
- xorg-fontconfig
- gcc
- glib
- gtk3
- libxcb
- libxkbcommon
- mesa
- pango
- systemd
- xorg-libx11
- xorg-libxcomposite
- xorg-libxdamage
- xorg-libxext
- xorg-libxfixes
- xorg-libxrandr
- xorg-libxscrnsaver
- xorg-libxshmfence
- xorg-libdrm
- zlib
makedepends: []
source:
- 'https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v${pkgver}/Heroic-${pkgver}-linux-x64.tar.xz'
sha256sums:
- 81497c4e67d42905da5839a32be053c011eae35fb1fd5ec9441249b238d8f99b
build: |
cd Heroic-${pkgver}-linux-x64
install -d "${PKGDIR}/opt/heroic"
cp -a . "${PKGDIR}/opt/heroic/"
# Chromium/Electron SUID sandbox – bit ustawiamy też w hooku post-install,
# bo instalator `pag` czyści SUID z plików spoza listy uprzywilejowanej.
chown root:root "${PKGDIR}/opt/heroic/chrome-sandbox" || true
chmod 4755 "${PKGDIR}/opt/heroic/chrome-sandbox" || true
install -d "${PKGDIR}/usr/bin"
printf '%s\n' '#!/bin/sh' 'exec /opt/heroic/heroic "$@"' \
> "${PKGDIR}/usr/bin/heroic"
chmod 755 "${PKGDIR}/usr/bin/heroic"
install -d "${PKGDIR}/usr/share/applications" \
"${PKGDIR}/usr/share/icons/hicolor/256x256/apps"
printf '%s\n' \
'[Desktop Entry]' \
'Name=Heroic Games Launcher' \
'Comment=Open source game launcher (Epic, GOG, Amazon)' \
'Exec=heroic %U' \
'Icon=heroic' \
'Terminal=false' \
'Type=Application' \
'Categories=Game;' \
'StartupWMClass=heroic' \
> "${PKGDIR}/usr/share/applications/heroic.desktop"
install -Dm644 resources/app.asar.unpacked/build/icon.png \
"${PKGDIR}/usr/share/icons/hicolor/256x256/apps/heroic.png"
hooks:
post-install: |
if [ -f /opt/heroic/chrome-sandbox ]; then
chown root:root /opt/heroic/chrome-sandbox || true
chmod 4755 /opt/heroic/chrome-sandbox || true
fi
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