New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New package: heroic-games-launcher-2.4.3 #40220
New package: heroic-games-launcher-2.4.3 #40220
Conversation
d4841df
to
c4bc074
Compare
https://github.com/void-linux/void-packages/actions/runs/3353335290/jobs/5558484193#step:7:170 You are fetching precompiled binaries for glibc. |
4443544
to
a422599
Compare
Yep, I just realised that and removed musl architectures completely. |
a422599
to
e0b96b6
Compare
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
@@ -0,0 +1,10 @@ | |||
[Desktop Entry] | |||
Name=Heroic Games Launcher | |||
Exec=/usr/bin/heroic %U |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exec=/usr/bin/heroic %U | |
Exec=/opt/heroic/heroic %U |
@@ -0,0 +1,57 @@ | |||
# Template file for 'heroic-games-launcher' | |||
pkgname=heroic-games-launcher | |||
version=2.4.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version=2.4.3 | |
version=2.6.1 |
archs="x86_64 armv7l aarch64 ~*-musl" | ||
wrksrc="HeroicGamesLauncher-${version}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
archs="x86_64 armv7l aarch64 ~*-musl" | |
wrksrc="HeroicGamesLauncher-${version}" | |
archs="x86_64" |
archs="x86_64 armv7l aarch64 ~*-musl" | ||
wrksrc="HeroicGamesLauncher-${version}" | ||
hostmakedepends="nodejs python3 yarn" | ||
depends="alsa-lib gtk+3 nss python3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depends="alsa-lib gtk+3 nss python3" | |
depends="fuse gawk" |
license="GPL-3.0-or-later" | ||
homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher" | ||
distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz" | ||
checksum=b6590fd99776c2f6d890266ee177d1d90f8a127eaa47b9aec41fc00c4194bc9a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checksum=b6590fd99776c2f6d890266ee177d1d90f8a127eaa47b9aec41fc00c4194bc9a | |
checksum=d312ae93a63029491bf23eb52074580e4a1830d030b70f9547fd9b187306f8aa |
case ${XBPS_TARGET_MACHINE} in | ||
x86_64*) _arch=x64 ;; | ||
aarch64*) _arch=arm64 ;; | ||
armv7l*) _arch=armv7l ;; | ||
*) broken="There is no electron package provided for selected architecture." ;; | ||
esac | ||
|
||
if ! [ ${_arch} == "x64" ]; then | ||
nostrip_files="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl | ||
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary" | ||
|
||
skiprdeps="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl | ||
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary" | ||
fi | ||
|
||
do_build() { | ||
npm_config_arch=${_arch} npm_config_platform=linux yarn | ||
npm_config_arch=${_arch} npm_config_platform=linux yarn dist:linux tar.xz --${_arch} | ||
} | ||
|
||
do_check() { | ||
npm_config_arch=${_arch} yarn test | ||
npm_config_arch=${_arch} yarn test:ci | ||
} | ||
|
||
do_install() { | ||
vmkdir opt/heroic/ | ||
if [ ${_arch} == "x64" ]; then | ||
vcopy dist/linux-unpacked/* opt/heroic/ | ||
else | ||
vcopy dist/linux-${_arch}-unpacked/* opt/heroic/ | ||
fi | ||
vmkdir usr/bin/ | ||
ln -sf /opt/heroic/heroic ${DESTDIR}/usr/bin/heroic | ||
vmkdir usr/share/pixmaps/ | ||
vinstall public/icon.png 0755 usr/share/pixmaps/ heroic.png | ||
vmkdir usr/share/applications/ | ||
vinstall ${FILESDIR}/heroic.desktop 0644 usr/share/applications/ | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case ${XBPS_TARGET_MACHINE} in | |
x86_64*) _arch=x64 ;; | |
aarch64*) _arch=arm64 ;; | |
armv7l*) _arch=armv7l ;; | |
*) broken="There is no electron package provided for selected architecture." ;; | |
esac | |
if ! [ ${_arch} == "x64" ]; then | |
nostrip_files="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl | |
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary" | |
skiprdeps="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl | |
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary" | |
fi | |
do_build() { | |
npm_config_arch=${_arch} npm_config_platform=linux yarn | |
npm_config_arch=${_arch} npm_config_platform=linux yarn dist:linux tar.xz --${_arch} | |
} | |
do_check() { | |
npm_config_arch=${_arch} yarn test | |
npm_config_arch=${_arch} yarn test:ci | |
} | |
do_install() { | |
vmkdir opt/heroic/ | |
if [ ${_arch} == "x64" ]; then | |
vcopy dist/linux-unpacked/* opt/heroic/ | |
else | |
vcopy dist/linux-${_arch}-unpacked/* opt/heroic/ | |
fi | |
vmkdir usr/bin/ | |
ln -sf /opt/heroic/heroic ${DESTDIR}/usr/bin/heroic | |
vmkdir usr/share/pixmaps/ | |
vinstall public/icon.png 0755 usr/share/pixmaps/ heroic.png | |
vmkdir usr/share/applications/ | |
vinstall ${FILESDIR}/heroic.desktop 0644 usr/share/applications/ | |
} | |
do_build() { | |
yarn | |
yarn dist:linux tar.xz | |
} | |
do_check() { | |
yarn test | |
yarn test:ci | |
} | |
do_install() { | |
vmkdir opt/heroic | |
vcopy dist/linux-unpacked/* opt/heroic | |
vinstall public/icon.png 644 usr/share/pixmaps heroic.png | |
vinstall ${FILESDIR}/heroic.desktop 644 usr/share/applications | |
} |
The above suggestions are to update it to the latest version, reduce dependencies, simplify the process and make it build properly (the base code wasn't building in my machine). Compilation also failed when building for anything other than x86_64, so I've removed the other architectures. |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
Testing the changes
New package
Local build testing