blob: 4d33a4c4e1df186f3b0b28813b8733ce6d487ee0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
pkgname=heroic-games-launcher-git
pkgver=2.15.1.r0.g47d3075ca
pkgrel=2
pkgdesc="Native GOG, Epic Games and Amazon games launcher for Linux"
arch=(x86_64)
url="https://heroicgameslauncher.com/"
license=(GPL3)
depends=(alsa-lib gtk3 nss)
makedepends=(git pnpm)
provides=(heroic-games-launcher)
conflicts=(heroic-games-launcher)
options=(!strip)
source=("git+https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher.git")
sha256sums=('SKIP')
pkgver() {
cd HeroicGamesLauncher
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd HeroicGamesLauncher
pnpm install
pnpm run download-helper-binaries
pnpm dist:linux tar.xz
}
package() {
cd HeroicGamesLauncher
install -d "${pkgdir}/opt/heroic"
cp -r dist/linux-unpacked/* "${pkgdir}/opt/heroic"
install -d "${pkgdir}/usr/bin"
ln -s /opt/heroic/heroic "${pkgdir}/usr/bin/heroic"
install -D public/icon.png "${pkgdir}/usr/share/pixmaps/heroic.png"
install -d "${pkgdir}/usr/share/applications/"
cat > ${pkgdir}/usr/share/applications/heroic.desktop << _EOD
[Desktop Entry]
Name=Heroic Games Launcher
Exec=/opt/heroic/heroic %U
Terminal=false
Type=Application
Icon=heroic
StartupWMClass=Heroic
Comment=Open Source GOG and Epic Games launcher
MimeType=x-scheme-handler/heroic;
Categories=Game;
_EOD
}
|