Github messages for voidlinux
 help / color / mirror / Atom feed
From: wiktorciurej <wiktorciurej@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: heroic-games-launcher-2.4.3
Date: Sat, 29 Oct 2022 18:53:12 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40220@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

There is a new pull request by wiktorciurej against master on the void-packages repository

https://github.com/wiktorciurej/void-packages new_package/heroic-games-launcher
https://github.com/void-linux/void-packages/pull/40220

New package: heroic-games-launcher-2.4.3
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64*
  - armv7l*
  - x86_64-musl



A patch file from https://github.com/void-linux/void-packages/pull/40220.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new_package/heroic-games-launcher-40220.patch --]
[-- Type: text/x-diff, Size: 2856 bytes --]

From e383def50503a73f9736553f025888edbca8f586 Mon Sep 17 00:00:00 2001
From: Wiktor Ciurej <wiktor.ciurej@gmail.com>
Date: Sat, 29 Oct 2022 18:47:44 +0200
Subject: [PATCH] New package: heroic-games-launcher-2.4.3

---
 .../files/heroic.desktop                      | 10 +++++
 srcpkgs/heroic-games-launcher/template        | 45 +++++++++++++++++++
 2 files changed, 55 insertions(+)
 create mode 100644 srcpkgs/heroic-games-launcher/files/heroic.desktop
 create mode 100644 srcpkgs/heroic-games-launcher/template

diff --git a/srcpkgs/heroic-games-launcher/files/heroic.desktop b/srcpkgs/heroic-games-launcher/files/heroic.desktop
new file mode 100644
index 000000000000..15c393b9e41e
--- /dev/null
+++ b/srcpkgs/heroic-games-launcher/files/heroic.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Heroic Games Launcher
+Exec=/usr/bin/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;
diff --git a/srcpkgs/heroic-games-launcher/template b/srcpkgs/heroic-games-launcher/template
new file mode 100644
index 000000000000..aeddb6f659b8
--- /dev/null
+++ b/srcpkgs/heroic-games-launcher/template
@@ -0,0 +1,45 @@
+# Template file for 'heroic-games-launcher'
+pkgname=heroic-games-launcher
+version=2.4.3
+revision=1
+archs="x86_64* armv7l* aarch64*"
+wrksrc="HeroicGamesLauncher-${version}"
+hostmakedepends="nodejs python3 yarn"
+depends="alsa-lib gtk+3 nss python3"
+checkdepends="tar xz"
+short_desc="Open Source Launcher for GOG and Epic Games"
+maintainer="Wiktor Ciurej <wiktor.ciurej@gmail.com>"
+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
+nopie_files="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
+	/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+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
+
+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/
+	vcopy dist/linux-unpacked/* opt/heroic/
+	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 0755 usr/share/applications/
+}

             reply	other threads:[~2022-10-29 16:53 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-29 16:53 wiktorciurej [this message]
2022-10-29 21:09 ` [PR PATCH] [Updated] " wiktorciurej
2022-10-29 23:25 ` wiktorciurej
2022-10-29 23:26 ` wiktorciurej
2022-10-30 10:11 ` Johnnynator
2022-10-30 10:33 ` [PR PATCH] [Updated] " wiktorciurej
2022-10-30 11:17 ` wiktorciurej
2022-10-30 11:18 ` wiktorciurej
2022-10-30 11:22 ` [PR PATCH] [Updated] " wiktorciurej
2023-01-29  2:01 ` github-actions
2023-02-03 17:02 ` [PR REVIEW] " sirkhancision
2023-02-03 17:02 ` sirkhancision
2023-02-03 17:03 ` sirkhancision
2023-02-03 17:03 ` sirkhancision
2023-02-03 17:04 ` sirkhancision
2023-02-03 17:06 ` sirkhancision
2023-02-03 17:10 ` sirkhancision
2023-05-06  1:48 ` github-actions
2023-05-20  1:51 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40220@inbox.vuxu.org \
    --to=wiktorciurej@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).