Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
@ 2020-12-18  6:11 ` ericonr
  2020-12-18  6:11 ` ericonr
                   ` (31 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2020-12-18  6:11 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r545592078

Comment:
I greatly dislike creating our own desktop files. Does upstream not provide one at all?

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
  2020-12-18  6:11 ` [PR REVIEW] New package: Itch ericonr
  2020-12-18  6:11 ` ericonr
@ 2020-12-18  6:11 ` ericonr
  2020-12-18  6:11 ` ericonr
                   ` (29 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2020-12-18  6:11 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r545593616

Comment:
Why can't this use the `do_build` function from the Go build style?

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (2 preceding siblings ...)
  2020-12-18  6:11 ` ericonr
@ 2020-12-18  6:11 ` ericonr
  2020-12-18  6:11 ` ericonr
                   ` (28 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2020-12-18  6:11 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r545593242

Comment:
I don't think it needs to be restricted, let people install games wherever they want, they can have fun trying to run them :)

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (3 preceding siblings ...)
  2020-12-18  6:11 ` ericonr
@ 2020-12-18  6:11 ` ericonr
  2020-12-18  6:11 ` ericonr
                   ` (27 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2020-12-18  6:11 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r545593375

Comment:
Please use vinstall here as well.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (4 preceding siblings ...)
  2020-12-18  6:11 ` ericonr
@ 2020-12-18  6:11 ` ericonr
  2020-12-24 20:15 ` bugcrazy
                   ` (26 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2020-12-18  6:11 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r545593781

Comment:
Also, it should be `exec itch-setup`

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (5 preceding siblings ...)
  2020-12-18  6:11 ` ericonr
@ 2020-12-24 20:15 ` bugcrazy
  2020-12-24 20:26 ` bugcrazy
                   ` (25 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2020-12-24 20:15 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r548743019

Comment:
It only offers the code, no .desktop file, this code that I use to create the file.
https://github.com/itchio/itch-setup/blob/4a138757685a092640aa5fbb49c6b8133c5325cf/native/native_linux.go#L480

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (6 preceding siblings ...)
  2020-12-24 20:15 ` bugcrazy
@ 2020-12-24 20:26 ` bugcrazy
  2020-12-24 20:43 ` bugcrazy
                   ` (24 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2020-12-24 20:26 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r548744352

Comment:
This code is provided by the project, I am following the recommendation, the project does not have a script itself, but it does provide this code.


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (7 preceding siblings ...)
  2020-12-24 20:26 ` bugcrazy
@ 2020-12-24 20:43 ` bugcrazy
  2020-12-24 20:47 ` bugcrazy
                   ` (23 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2020-12-24 20:43 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r548746127

Comment:
Only these two architectures are supported in the project code to compile.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (8 preceding siblings ...)
  2020-12-24 20:43 ` bugcrazy
@ 2020-12-24 20:47 ` bugcrazy
  2020-12-24 20:52 ` bugcrazy
                   ` (22 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2020-12-24 20:47 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r548746715

Comment:
The vinstall command does not work for this, as the files are downloaded separately and then moved to a folder.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (9 preceding siblings ...)
  2020-12-24 20:47 ` bugcrazy
@ 2020-12-24 20:52 ` bugcrazy
  2020-12-24 21:02 ` [PR PATCH] [Updated] " bugcrazy
                   ` (21 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2020-12-24 20:52 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r548747150

Comment:
In this version 1.18.0 you needed it, now in version 1.24.0 you don't need it, I will update the template and make squash the commits.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (10 preceding siblings ...)
  2020-12-24 20:52 ` bugcrazy
@ 2020-12-24 21:02 ` bugcrazy
  2020-12-24 21:22 ` bugcrazy
                   ` (20 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2020-12-24 21:02 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 9242 bytes --]

From 018de2afc860e66740b6831948311be138f85c98 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH 1/5]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.
---
 srcpkgs/itch/template | 61 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 00000000000..3418772e435
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,61 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.18.0
+revision=1
+archs="i686 x86_64"
+build_style=go
+hostmakedepends="wget"
+makedepends="curl"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://github.com/itchio/itch"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64)
+		_dist_arch="amd64"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
+
+		;;
+	i686)
+		_dist_arch="386"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
+
+;;
+esac
+
+_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
+
+distfiles="
+ https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
+ wrksrc="itch-25.4.0"
+
+do_fetch() {
+	mkdir -p $wrksrc
+	cd $wrksrc
+	wget \
+		--progress=bar:force \
+		-c -O $_filename \
+		$_itchUrl
+	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+}
+
+do_install() {
+	vbin itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

From 36c0e9ef56cda191830f74bb55869b62d9fe5e4c Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:08:53 -0300
Subject: [PATCH 2/5] Add file

---
 srcpkgs/itch/files/io.itch.itch.desktop | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 00000000000..b760f9c5177
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily

From d7eada11c562ff443b29e9130d56e83c753bcdf3 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:12:39 -0300
Subject: [PATCH 3/5] Add shell script file

---
 srcpkgs/itch/files/itch | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 srcpkgs/itch/files/itch

diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 00000000000..b3601fa8405
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"

From a12e76cbbdefcc50af50d978af05b7cf7465db5f Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Mon, 15 Jun 2020 04:55:59 -0300
Subject: [PATCH 4/5] Applied suggested changes to the template

---
 srcpkgs/itch/template | 61 ++++++++++++++++---------------------------
 1 file changed, 22 insertions(+), 39 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 3418772e435..89cb86df2a8 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -3,59 +3,42 @@ pkgname=itch
 version=1.18.0
 revision=1
 archs="i686 x86_64"
+wrksrc="${pkgname}-setup-${version}"
 build_style=go
-hostmakedepends="wget"
-makedepends="curl"
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config"
+makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
 license="MIT"
-homepage="https://github.com/itchio/itch"
-
-case "$XBPS_TARGET_MACHINE" in
-	x86_64)
-		_dist_arch="amd64"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
-
-		;;
-	i686)
-		_dist_arch="386"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
-
-;;
-esac
-
-_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
-
+homepage="https://itch.io/"
 distfiles="
- https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
- wrksrc="itch-25.4.0"
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+checksum="
+ 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
 
-do_fetch() {
-	mkdir -p $wrksrc
-	cd $wrksrc
-	wget \
-		--progress=bar:force \
-		-c -O $_filename \
-		$_itchUrl
-	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+do_build() {
+	cd "$GOSRCPATH"
+	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
 }
 
 do_install() {
-	vbin itch-setup
+	vbin ${GOPATH}/bin/itch-setup
 	vbin ${FILESDIR}/itch
 	vmkdir usr/share/applications
 	vmkdir usr/share/icons/hicolor/16x16/apps
 	vmkdir usr/share/icons/hicolor/32x32/apps
 	vmkdir usr/share/icons/hicolor/48x48/apps
 	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
-	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
-	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
-	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
 	vlicense LICENSE
 }

From 59401d60124c5a4031f7d653dd580fbc1025fb9d Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:02:37 -0300
Subject: [PATCH 5/5] Update version

---
 srcpkgs/itch/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 89cb86df2a8..b616c2f6521 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -1,12 +1,12 @@
 # Template file for 'itch'
 pkgname=itch
-version=1.18.0
+version=1.24.0
 revision=1
 archs="i686 x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"
-hostmakedepends="git pkg-config"
+hostmakedepends="git pkg-config nodejs-lts"
 makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
@@ -18,15 +18,15 @@ distfiles="
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
 checksum="
- 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ 316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
  e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
  5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
 skip_extraction="icon16.png icon32.png icon48.png"
 
-do_build() {
-	cd "$GOSRCPATH"
-	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
 }
 
 do_install() {

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (11 preceding siblings ...)
  2020-12-24 21:02 ` [PR PATCH] [Updated] " bugcrazy
@ 2020-12-24 21:22 ` bugcrazy
  2021-04-18  5:25 ` [PR REVIEW] " ericonr
                   ` (19 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2020-12-24 21:22 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 10005 bytes --]

From 018de2afc860e66740b6831948311be138f85c98 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH 1/6]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.
---
 srcpkgs/itch/template | 61 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 00000000000..3418772e435
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,61 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.18.0
+revision=1
+archs="i686 x86_64"
+build_style=go
+hostmakedepends="wget"
+makedepends="curl"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://github.com/itchio/itch"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64)
+		_dist_arch="amd64"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
+
+		;;
+	i686)
+		_dist_arch="386"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
+
+;;
+esac
+
+_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
+
+distfiles="
+ https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
+ wrksrc="itch-25.4.0"
+
+do_fetch() {
+	mkdir -p $wrksrc
+	cd $wrksrc
+	wget \
+		--progress=bar:force \
+		-c -O $_filename \
+		$_itchUrl
+	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+}
+
+do_install() {
+	vbin itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

From 36c0e9ef56cda191830f74bb55869b62d9fe5e4c Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:08:53 -0300
Subject: [PATCH 2/6] Add file

---
 srcpkgs/itch/files/io.itch.itch.desktop | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 00000000000..b760f9c5177
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily

From d7eada11c562ff443b29e9130d56e83c753bcdf3 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:12:39 -0300
Subject: [PATCH 3/6] Add shell script file

---
 srcpkgs/itch/files/itch | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 srcpkgs/itch/files/itch

diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 00000000000..b3601fa8405
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"

From a12e76cbbdefcc50af50d978af05b7cf7465db5f Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Mon, 15 Jun 2020 04:55:59 -0300
Subject: [PATCH 4/6] Applied suggested changes to the template

---
 srcpkgs/itch/template | 61 ++++++++++++++++---------------------------
 1 file changed, 22 insertions(+), 39 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 3418772e435..89cb86df2a8 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -3,59 +3,42 @@ pkgname=itch
 version=1.18.0
 revision=1
 archs="i686 x86_64"
+wrksrc="${pkgname}-setup-${version}"
 build_style=go
-hostmakedepends="wget"
-makedepends="curl"
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config"
+makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
 license="MIT"
-homepage="https://github.com/itchio/itch"
-
-case "$XBPS_TARGET_MACHINE" in
-	x86_64)
-		_dist_arch="amd64"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
-
-		;;
-	i686)
-		_dist_arch="386"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
-
-;;
-esac
-
-_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
-
+homepage="https://itch.io/"
 distfiles="
- https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
- wrksrc="itch-25.4.0"
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+checksum="
+ 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
 
-do_fetch() {
-	mkdir -p $wrksrc
-	cd $wrksrc
-	wget \
-		--progress=bar:force \
-		-c -O $_filename \
-		$_itchUrl
-	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+do_build() {
+	cd "$GOSRCPATH"
+	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
 }
 
 do_install() {
-	vbin itch-setup
+	vbin ${GOPATH}/bin/itch-setup
 	vbin ${FILESDIR}/itch
 	vmkdir usr/share/applications
 	vmkdir usr/share/icons/hicolor/16x16/apps
 	vmkdir usr/share/icons/hicolor/32x32/apps
 	vmkdir usr/share/icons/hicolor/48x48/apps
 	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
-	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
-	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
-	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
 	vlicense LICENSE
 }

From 59401d60124c5a4031f7d653dd580fbc1025fb9d Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:02:37 -0300
Subject: [PATCH 5/6] Update version

---
 srcpkgs/itch/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 89cb86df2a8..b616c2f6521 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -1,12 +1,12 @@
 # Template file for 'itch'
 pkgname=itch
-version=1.18.0
+version=1.24.0
 revision=1
 archs="i686 x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"
-hostmakedepends="git pkg-config"
+hostmakedepends="git pkg-config nodejs-lts"
 makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
@@ -18,15 +18,15 @@ distfiles="
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
 checksum="
- 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ 316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
  e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
  5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
 skip_extraction="icon16.png icon32.png icon48.png"
 
-do_build() {
-	cd "$GOSRCPATH"
-	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
 }
 
 do_install() {

From 77b3357dd0320d783652b3e2104022a82aed18a2 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:22:49 -0300
Subject: [PATCH 6/6] Remove i686 architecture

There is no linux-i686.zip package to download from the project's github, making it impossible to compile on i686.
---
 srcpkgs/itch/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index b616c2f6521..1d5567961f5 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -2,7 +2,7 @@
 pkgname=itch
 version=1.24.0
 revision=1
-archs="i686 x86_64"
+archs="x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (12 preceding siblings ...)
  2020-12-24 21:22 ` bugcrazy
@ 2021-04-18  5:25 ` ericonr
  2021-04-21  1:46 ` bugcrazy
                   ` (18 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2021-04-18  5:25 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r615344124

Comment:
Please use the icons from version instead of master

```suggestion
 https://raw.githubusercontent.com/itchio/itch/v${version}/release/images/itch-icons/icon16.png
 https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
 https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
```

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (13 preceding siblings ...)
  2021-04-18  5:25 ` [PR REVIEW] " ericonr
@ 2021-04-21  1:46 ` bugcrazy
  2021-04-21  2:02 ` ericonr
                   ` (17 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-04-21  1:46 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r617144621

Comment:
It will stay like this! 

 https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon16.png
 https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
 https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png

I'm using the framework icons! 

https://github.com/itchio/itch

The compiled app does not have these icons! 

https://github.com/itchio/itch-setup

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (14 preceding siblings ...)
  2021-04-21  1:46 ` bugcrazy
@ 2021-04-21  2:02 ` ericonr
  2021-04-21  2:27 ` [PR PATCH] [Updated] " bugcrazy
                   ` (16 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2021-04-21  2:02 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r617149370

Comment:
Ok, you can use a specific tag from that repo. I just want to avoid pulling from the development branch, since any change they make will break our build.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (15 preceding siblings ...)
  2021-04-21  2:02 ` ericonr
@ 2021-04-21  2:27 ` bugcrazy
  2021-04-21  2:31 ` [PR REVIEW] " bugcrazy
                   ` (15 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-04-21  2:27 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 11321 bytes --]

From 018de2afc860e66740b6831948311be138f85c98 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH 1/7]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.
---
 srcpkgs/itch/template | 61 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 000000000000..3418772e435e
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,61 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.18.0
+revision=1
+archs="i686 x86_64"
+build_style=go
+hostmakedepends="wget"
+makedepends="curl"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://github.com/itchio/itch"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64)
+		_dist_arch="amd64"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
+
+		;;
+	i686)
+		_dist_arch="386"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
+
+;;
+esac
+
+_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
+
+distfiles="
+ https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
+ wrksrc="itch-25.4.0"
+
+do_fetch() {
+	mkdir -p $wrksrc
+	cd $wrksrc
+	wget \
+		--progress=bar:force \
+		-c -O $_filename \
+		$_itchUrl
+	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+}
+
+do_install() {
+	vbin itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

From 36c0e9ef56cda191830f74bb55869b62d9fe5e4c Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:08:53 -0300
Subject: [PATCH 2/7] Add file

---
 srcpkgs/itch/files/io.itch.itch.desktop | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 000000000000..b760f9c51774
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily

From d7eada11c562ff443b29e9130d56e83c753bcdf3 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:12:39 -0300
Subject: [PATCH 3/7] Add shell script file

---
 srcpkgs/itch/files/itch | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 srcpkgs/itch/files/itch

diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 000000000000..b3601fa8405c
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"

From a12e76cbbdefcc50af50d978af05b7cf7465db5f Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Mon, 15 Jun 2020 04:55:59 -0300
Subject: [PATCH 4/7] Applied suggested changes to the template

---
 srcpkgs/itch/template | 61 ++++++++++++++++---------------------------
 1 file changed, 22 insertions(+), 39 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 3418772e435e..89cb86df2a8d 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -3,59 +3,42 @@ pkgname=itch
 version=1.18.0
 revision=1
 archs="i686 x86_64"
+wrksrc="${pkgname}-setup-${version}"
 build_style=go
-hostmakedepends="wget"
-makedepends="curl"
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config"
+makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
 license="MIT"
-homepage="https://github.com/itchio/itch"
-
-case "$XBPS_TARGET_MACHINE" in
-	x86_64)
-		_dist_arch="amd64"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
-
-		;;
-	i686)
-		_dist_arch="386"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
-
-;;
-esac
-
-_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
-
+homepage="https://itch.io/"
 distfiles="
- https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
- wrksrc="itch-25.4.0"
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+checksum="
+ 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
 
-do_fetch() {
-	mkdir -p $wrksrc
-	cd $wrksrc
-	wget \
-		--progress=bar:force \
-		-c -O $_filename \
-		$_itchUrl
-	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+do_build() {
+	cd "$GOSRCPATH"
+	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
 }
 
 do_install() {
-	vbin itch-setup
+	vbin ${GOPATH}/bin/itch-setup
 	vbin ${FILESDIR}/itch
 	vmkdir usr/share/applications
 	vmkdir usr/share/icons/hicolor/16x16/apps
 	vmkdir usr/share/icons/hicolor/32x32/apps
 	vmkdir usr/share/icons/hicolor/48x48/apps
 	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
-	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
-	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
-	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
 	vlicense LICENSE
 }

From 59401d60124c5a4031f7d653dd580fbc1025fb9d Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:02:37 -0300
Subject: [PATCH 5/7] Update version

---
 srcpkgs/itch/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 89cb86df2a8d..b616c2f65218 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -1,12 +1,12 @@
 # Template file for 'itch'
 pkgname=itch
-version=1.18.0
+version=1.24.0
 revision=1
 archs="i686 x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"
-hostmakedepends="git pkg-config"
+hostmakedepends="git pkg-config nodejs-lts"
 makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
@@ -18,15 +18,15 @@ distfiles="
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
 checksum="
- 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ 316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
  e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
  5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
 skip_extraction="icon16.png icon32.png icon48.png"
 
-do_build() {
-	cd "$GOSRCPATH"
-	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
 }
 
 do_install() {

From 77b3357dd0320d783652b3e2104022a82aed18a2 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:22:49 -0300
Subject: [PATCH 6/7] Remove i686 architecture

There is no linux-i686.zip package to download from the project's github, making it impossible to compile on i686.
---
 srcpkgs/itch/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index b616c2f65218..1d5567961f5c 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -2,7 +2,7 @@
 pkgname=itch
 version=1.24.0
 revision=1
-archs="i686 x86_64"
+archs="x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"

From 78ee171fea184eb09a5f176db513f2a1e302d9c5 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Tue, 20 Apr 2021 23:27:43 -0300
Subject: [PATCH 7/7] Applied suggested changes

---
 srcpkgs/itch/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 1d5567961f5c..8145e54da85b 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -14,9 +14,9 @@ license="MIT"
 homepage="https://itch.io/"
 distfiles="
  https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png"
 checksum="
  316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (16 preceding siblings ...)
  2021-04-21  2:27 ` [PR PATCH] [Updated] " bugcrazy
@ 2021-04-21  2:31 ` bugcrazy
  2021-06-18  0:54 ` [PR PATCH] [Updated] " bugcrazy
                   ` (14 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-04-21  2:31 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r617157584

Comment:
Done!

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (17 preceding siblings ...)
  2021-04-21  2:31 ` [PR REVIEW] " bugcrazy
@ 2021-06-18  0:54 ` bugcrazy
  2021-06-18  1:09 ` bugcrazy
                   ` (13 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-06-18  0:54 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 13537 bytes --]

From 018de2afc860e66740b6831948311be138f85c98 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH 1/8]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.
---
 srcpkgs/itch/template | 61 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 000000000000..3418772e435e
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,61 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.18.0
+revision=1
+archs="i686 x86_64"
+build_style=go
+hostmakedepends="wget"
+makedepends="curl"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://github.com/itchio/itch"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64)
+		_dist_arch="amd64"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
+
+		;;
+	i686)
+		_dist_arch="386"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
+
+;;
+esac
+
+_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
+
+distfiles="
+ https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
+ wrksrc="itch-25.4.0"
+
+do_fetch() {
+	mkdir -p $wrksrc
+	cd $wrksrc
+	wget \
+		--progress=bar:force \
+		-c -O $_filename \
+		$_itchUrl
+	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+}
+
+do_install() {
+	vbin itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

From 36c0e9ef56cda191830f74bb55869b62d9fe5e4c Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:08:53 -0300
Subject: [PATCH 2/8] Add file

---
 srcpkgs/itch/files/io.itch.itch.desktop | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 000000000000..b760f9c51774
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily

From d7eada11c562ff443b29e9130d56e83c753bcdf3 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:12:39 -0300
Subject: [PATCH 3/8] Add shell script file

---
 srcpkgs/itch/files/itch | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 srcpkgs/itch/files/itch

diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 000000000000..b3601fa8405c
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"

From a12e76cbbdefcc50af50d978af05b7cf7465db5f Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Mon, 15 Jun 2020 04:55:59 -0300
Subject: [PATCH 4/8] Applied suggested changes to the template

---
 srcpkgs/itch/template | 61 ++++++++++++++++---------------------------
 1 file changed, 22 insertions(+), 39 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 3418772e435e..89cb86df2a8d 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -3,59 +3,42 @@ pkgname=itch
 version=1.18.0
 revision=1
 archs="i686 x86_64"
+wrksrc="${pkgname}-setup-${version}"
 build_style=go
-hostmakedepends="wget"
-makedepends="curl"
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config"
+makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
 license="MIT"
-homepage="https://github.com/itchio/itch"
-
-case "$XBPS_TARGET_MACHINE" in
-	x86_64)
-		_dist_arch="amd64"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
-
-		;;
-	i686)
-		_dist_arch="386"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
-
-;;
-esac
-
-_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
-
+homepage="https://itch.io/"
 distfiles="
- https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
- wrksrc="itch-25.4.0"
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+checksum="
+ 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
 
-do_fetch() {
-	mkdir -p $wrksrc
-	cd $wrksrc
-	wget \
-		--progress=bar:force \
-		-c -O $_filename \
-		$_itchUrl
-	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+do_build() {
+	cd "$GOSRCPATH"
+	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
 }
 
 do_install() {
-	vbin itch-setup
+	vbin ${GOPATH}/bin/itch-setup
 	vbin ${FILESDIR}/itch
 	vmkdir usr/share/applications
 	vmkdir usr/share/icons/hicolor/16x16/apps
 	vmkdir usr/share/icons/hicolor/32x32/apps
 	vmkdir usr/share/icons/hicolor/48x48/apps
 	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
-	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
-	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
-	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
 	vlicense LICENSE
 }

From 59401d60124c5a4031f7d653dd580fbc1025fb9d Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:02:37 -0300
Subject: [PATCH 5/8] Update version

---
 srcpkgs/itch/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 89cb86df2a8d..b616c2f65218 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -1,12 +1,12 @@
 # Template file for 'itch'
 pkgname=itch
-version=1.18.0
+version=1.24.0
 revision=1
 archs="i686 x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"
-hostmakedepends="git pkg-config"
+hostmakedepends="git pkg-config nodejs-lts"
 makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
@@ -18,15 +18,15 @@ distfiles="
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
 checksum="
- 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ 316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
  e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
  5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
 skip_extraction="icon16.png icon32.png icon48.png"
 
-do_build() {
-	cd "$GOSRCPATH"
-	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
 }
 
 do_install() {

From 77b3357dd0320d783652b3e2104022a82aed18a2 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:22:49 -0300
Subject: [PATCH 6/8] Remove i686 architecture

There is no linux-i686.zip package to download from the project's github, making it impossible to compile on i686.
---
 srcpkgs/itch/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index b616c2f65218..1d5567961f5c 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -2,7 +2,7 @@
 pkgname=itch
 version=1.24.0
 revision=1
-archs="i686 x86_64"
+archs="x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"

From 78ee171fea184eb09a5f176db513f2a1e302d9c5 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Tue, 20 Apr 2021 23:27:43 -0300
Subject: [PATCH 7/8] Applied suggested changes

---
 srcpkgs/itch/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 1d5567961f5c..8145e54da85b 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -14,9 +14,9 @@ license="MIT"
 homepage="https://itch.io/"
 distfiles="
  https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png"
 checksum="
  316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78

From 727775198d9a5b60b9411d5aea322d9bdb02bf04 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 17 Jun 2021 21:54:16 -0300
Subject: [PATCH 8/8] Added Patch

The version of Gotk3 0.4.0, does not compile with Go 1.16, the 0.6.0 version compiles fine!
---
 srcpkgs/itch/patches/fix-version-error.patch | 25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 srcpkgs/itch/patches/fix-version-error.patch

diff --git a/srcpkgs/itch/patches/fix-version-error.patch b/srcpkgs/itch/patches/fix-version-error.patch
new file mode 100644
index 000000000000..8c025ee3a4dc
--- /dev/null
+++ b/srcpkgs/itch/patches/fix-version-error.patch
@@ -0,0 +1,25 @@
+--- go.mod	2021-04-21 22:34:25.000000000 -0300
++++ go.mod	2021-06-16 07:42:44.652159000 -0300
+@@ -11,7 +11,7 @@
+ 	github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
+ 	github.com/go-ole/go-ole v1.2.4 // indirect
+ 	github.com/google/uuid v1.1.1
+-	github.com/gotk3/gotk3 v0.4.0
++	github.com/gotk3/gotk3 v0.6.0
+ 	github.com/itchio/go-itchio v0.0.0-20200402182019-61224e60358e
+ 	github.com/itchio/headway v0.0.0-20200301160421-e15721f23905
+ 	github.com/itchio/httpkit v0.0.0-20200618110940-5044e418b971
+
+--- go.sum	2021-04-21 22:34:25.000000000 -0300
++++ go.sum	2021-06-16 07:42:25.948158000 -0300
+@@ -92,8 +92,8 @@
+ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+-github.com/gotk3/gotk3 v0.4.0 h1:TIuhyQitGeRTxOQIV3AJlYtEWWJpC74JHwAIsxlH8MU=
+-github.com/gotk3/gotk3 v0.4.0/go.mod h1:Eew3QBwAOBTrfFFDmsDE5wZWbcagBL1NUslj1GhRveo=
++github.com/gotk3/gotk3 v0.6.0 h1:Aqlq4/6VabNwtCyA9M9zFNad5yHAqCi5heWnZ9y+3dA=
++github.com/gotk3/gotk3 v0.6.0/go.mod h1:/hqFpkNa9T3JgNAE2fLvCdov7c5bw//FHNZrZ3Uv9/Q=
+ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
+ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (18 preceding siblings ...)
  2021-06-18  0:54 ` [PR PATCH] [Updated] " bugcrazy
@ 2021-06-18  1:09 ` bugcrazy
  2021-06-18  1:20 ` bugcrazy
                   ` (12 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-06-18  1:09 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 15051 bytes --]

From 018de2afc860e66740b6831948311be138f85c98 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH 1/9]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.
---
 srcpkgs/itch/template | 61 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 000000000000..3418772e435e
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,61 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.18.0
+revision=1
+archs="i686 x86_64"
+build_style=go
+hostmakedepends="wget"
+makedepends="curl"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://github.com/itchio/itch"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64)
+		_dist_arch="amd64"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
+
+		;;
+	i686)
+		_dist_arch="386"
+		_filename=itch-setup
+		checksum="
+ e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
+ 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
+
+;;
+esac
+
+_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
+
+distfiles="
+ https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
+ wrksrc="itch-25.4.0"
+
+do_fetch() {
+	mkdir -p $wrksrc
+	cd $wrksrc
+	wget \
+		--progress=bar:force \
+		-c -O $_filename \
+		$_itchUrl
+	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+}
+
+do_install() {
+	vbin itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

From 36c0e9ef56cda191830f74bb55869b62d9fe5e4c Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:08:53 -0300
Subject: [PATCH 2/9] Add file

---
 srcpkgs/itch/files/io.itch.itch.desktop | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 000000000000..b760f9c51774
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily

From d7eada11c562ff443b29e9130d56e83c753bcdf3 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 05:12:39 -0300
Subject: [PATCH 3/9] Add shell script file

---
 srcpkgs/itch/files/itch | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 srcpkgs/itch/files/itch

diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 000000000000..b3601fa8405c
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"

From a12e76cbbdefcc50af50d978af05b7cf7465db5f Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Mon, 15 Jun 2020 04:55:59 -0300
Subject: [PATCH 4/9] Applied suggested changes to the template

---
 srcpkgs/itch/template | 61 ++++++++++++++++---------------------------
 1 file changed, 22 insertions(+), 39 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 3418772e435e..89cb86df2a8d 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -3,59 +3,42 @@ pkgname=itch
 version=1.18.0
 revision=1
 archs="i686 x86_64"
+wrksrc="${pkgname}-setup-${version}"
 build_style=go
-hostmakedepends="wget"
-makedepends="curl"
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config"
+makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
 license="MIT"
-homepage="https://github.com/itchio/itch"
-
-case "$XBPS_TARGET_MACHINE" in
-	x86_64)
-		_dist_arch="amd64"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 874a17d72a3bce1dda9b43ea6450a2f4454bf2b01207ae259a981b0f915bbedb"
-
-		;;
-	i686)
-		_dist_arch="386"
-		_filename=itch-setup
-		checksum="
- e86c70044c7d02754c6e52fb428d1278678d729c77b8359b5d82198595da1351
- 447940ea9cd7051e43f98b5dd5fdb0de94e30e2e479d2812314820030f876db2"
-
-;;
-esac
-
-_itchUrl="https://broth.itch.ovh/itch-setup/linux-${_dist_arch}/${version}/unpacked/default"
-
+homepage="https://itch.io/"
 distfiles="
- https://github.com/itchio/itch/archive/v25.4.0.tar.gz"
- wrksrc="itch-25.4.0"
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+checksum="
+ 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
 
-do_fetch() {
-	mkdir -p $wrksrc
-	cd $wrksrc
-	wget \
-		--progress=bar:force \
-		-c -O $_filename \
-		$_itchUrl
-	echo "$checksum  $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
+do_build() {
+	cd "$GOSRCPATH"
+	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
 }
 
 do_install() {
-	vbin itch-setup
+	vbin ${GOPATH}/bin/itch-setup
 	vbin ${FILESDIR}/itch
 	vmkdir usr/share/applications
 	vmkdir usr/share/icons/hicolor/16x16/apps
 	vmkdir usr/share/icons/hicolor/32x32/apps
 	vmkdir usr/share/icons/hicolor/48x48/apps
 	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
-	cp release/images/itch-icons/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
-	cp release/images/itch-icons/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
-	cp release/images/itch-icons/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
 	vlicense LICENSE
 }

From 59401d60124c5a4031f7d653dd580fbc1025fb9d Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:02:37 -0300
Subject: [PATCH 5/9] Update version

---
 srcpkgs/itch/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 89cb86df2a8d..b616c2f65218 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -1,12 +1,12 @@
 # Template file for 'itch'
 pkgname=itch
-version=1.18.0
+version=1.24.0
 revision=1
 archs="i686 x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"
-hostmakedepends="git pkg-config"
+hostmakedepends="git pkg-config nodejs-lts"
 makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
@@ -18,15 +18,15 @@ distfiles="
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
  https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
 checksum="
- 96d3bff9b200dc5c03af8e46d0805a6f4dc504d6281b2956dcedda931849c0dc
+ 316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
  e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
  5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
 skip_extraction="icon16.png icon32.png icon48.png"
 
-do_build() {
-	cd "$GOSRCPATH"
-	go get -p "$XBPS_MAKEJOBS" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
 }
 
 do_install() {

From 77b3357dd0320d783652b3e2104022a82aed18a2 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 24 Dec 2020 18:22:49 -0300
Subject: [PATCH 6/9] Remove i686 architecture

There is no linux-i686.zip package to download from the project's github, making it impossible to compile on i686.
---
 srcpkgs/itch/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index b616c2f65218..1d5567961f5c 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -2,7 +2,7 @@
 pkgname=itch
 version=1.24.0
 revision=1
-archs="i686 x86_64"
+archs="x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"

From 78ee171fea184eb09a5f176db513f2a1e302d9c5 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Tue, 20 Apr 2021 23:27:43 -0300
Subject: [PATCH 7/9] Applied suggested changes

---
 srcpkgs/itch/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 1d5567961f5c..8145e54da85b 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -14,9 +14,9 @@ license="MIT"
 homepage="https://itch.io/"
 distfiles="
  https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon16.png
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon32.png
- https://raw.githubusercontent.com/itchio/itch/master/release/images/itch-icons/icon48.png"
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png"
 checksum="
  316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78

From 727775198d9a5b60b9411d5aea322d9bdb02bf04 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 17 Jun 2021 21:54:16 -0300
Subject: [PATCH 8/9] Added Patch

The version of Gotk3 0.4.0, does not compile with Go 1.16, the 0.6.0 version compiles fine!
---
 srcpkgs/itch/patches/fix-version-error.patch | 25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 srcpkgs/itch/patches/fix-version-error.patch

diff --git a/srcpkgs/itch/patches/fix-version-error.patch b/srcpkgs/itch/patches/fix-version-error.patch
new file mode 100644
index 000000000000..8c025ee3a4dc
--- /dev/null
+++ b/srcpkgs/itch/patches/fix-version-error.patch
@@ -0,0 +1,25 @@
+--- go.mod	2021-04-21 22:34:25.000000000 -0300
++++ go.mod	2021-06-16 07:42:44.652159000 -0300
+@@ -11,7 +11,7 @@
+ 	github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
+ 	github.com/go-ole/go-ole v1.2.4 // indirect
+ 	github.com/google/uuid v1.1.1
+-	github.com/gotk3/gotk3 v0.4.0
++	github.com/gotk3/gotk3 v0.6.0
+ 	github.com/itchio/go-itchio v0.0.0-20200402182019-61224e60358e
+ 	github.com/itchio/headway v0.0.0-20200301160421-e15721f23905
+ 	github.com/itchio/httpkit v0.0.0-20200618110940-5044e418b971
+
+--- go.sum	2021-04-21 22:34:25.000000000 -0300
++++ go.sum	2021-06-16 07:42:25.948158000 -0300
+@@ -92,8 +92,8 @@
+ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+-github.com/gotk3/gotk3 v0.4.0 h1:TIuhyQitGeRTxOQIV3AJlYtEWWJpC74JHwAIsxlH8MU=
+-github.com/gotk3/gotk3 v0.4.0/go.mod h1:Eew3QBwAOBTrfFFDmsDE5wZWbcagBL1NUslj1GhRveo=
++github.com/gotk3/gotk3 v0.6.0 h1:Aqlq4/6VabNwtCyA9M9zFNad5yHAqCi5heWnZ9y+3dA=
++github.com/gotk3/gotk3 v0.6.0/go.mod h1:/hqFpkNa9T3JgNAE2fLvCdov7c5bw//FHNZrZ3Uv9/Q=
+ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
+ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=

From 6fcf8d34e87ecd79b07127b74d89406367361b4e Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Thu, 17 Jun 2021 22:08:59 -0300
Subject: [PATCH 9/9] Update to 1.26.0

Replaced nodejs-lts by nodejs, nodeJs-lts conflicts with git.
---
 srcpkgs/itch/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
index 8145e54da85b..4be1f15e21ad 100644
--- a/srcpkgs/itch/template
+++ b/srcpkgs/itch/template
@@ -1,12 +1,12 @@
 # Template file for 'itch'
 pkgname=itch
-version=1.24.0
+version=1.26.0
 revision=1
 archs="x86_64"
 wrksrc="${pkgname}-setup-${version}"
 build_style=go
 go_import_path="github.com/itchio/itch-setup"
-hostmakedepends="git pkg-config nodejs-lts"
+hostmakedepends="git pkg-config nodejs"
 makedepends="gtk+3-devel"
 short_desc="Itch.io indie games client for Linux"
 maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
@@ -18,7 +18,7 @@ distfiles="
  https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
  https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png"
 checksum="
- 316c9d3077c427f2bbc001ee51243413cd800b987ea9ceb89519381f797992bb
+ 9b1418442e1ec5104e7b76762b82b24ca7ff0edc92e6113859b37238dd1bf86c
  c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
  e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
  5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (19 preceding siblings ...)
  2021-06-18  1:09 ` bugcrazy
@ 2021-06-18  1:20 ` bugcrazy
  2021-06-18  2:16 ` bugcrazy
                   ` (11 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-06-18  1:20 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 5795 bytes --]

From 95032b17d61816a5c97db4b62065cb8bc111ed35 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

Add file

Add shell script file

Applied suggested changes to the template

Update version

Remove i686 architecture

There is no linux-i686.zip package to download from the project's github, making it impossible to compile on i686.

Applied suggested changes

Added Patch

The version of Gotk3 0.4.0, does not compile with Go 1.16, the 0.6.0 version compiles fine!

Update to 1.26.0

Replaced nodejs-lts by nodejs, nodeJs-lts conflicts with git.
---
 srcpkgs/itch/files/io.itch.itch.desktop      | 11 +++++
 srcpkgs/itch/files/itch                      |  2 +
 srcpkgs/itch/patches/fix-version-error.patch | 25 +++++++++++
 srcpkgs/itch/template                        | 44 ++++++++++++++++++++
 4 files changed, 82 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop
 create mode 100644 srcpkgs/itch/files/itch
 create mode 100644 srcpkgs/itch/patches/fix-version-error.patch
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 000000000000..b760f9c51774
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily
diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 000000000000..b3601fa8405c
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"
diff --git a/srcpkgs/itch/patches/fix-version-error.patch b/srcpkgs/itch/patches/fix-version-error.patch
new file mode 100644
index 000000000000..8c025ee3a4dc
--- /dev/null
+++ b/srcpkgs/itch/patches/fix-version-error.patch
@@ -0,0 +1,25 @@
+--- go.mod	2021-04-21 22:34:25.000000000 -0300
++++ go.mod	2021-06-16 07:42:44.652159000 -0300
+@@ -11,7 +11,7 @@
+ 	github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
+ 	github.com/go-ole/go-ole v1.2.4 // indirect
+ 	github.com/google/uuid v1.1.1
+-	github.com/gotk3/gotk3 v0.4.0
++	github.com/gotk3/gotk3 v0.6.0
+ 	github.com/itchio/go-itchio v0.0.0-20200402182019-61224e60358e
+ 	github.com/itchio/headway v0.0.0-20200301160421-e15721f23905
+ 	github.com/itchio/httpkit v0.0.0-20200618110940-5044e418b971
+
+--- go.sum	2021-04-21 22:34:25.000000000 -0300
++++ go.sum	2021-06-16 07:42:25.948158000 -0300
+@@ -92,8 +92,8 @@
+ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+-github.com/gotk3/gotk3 v0.4.0 h1:TIuhyQitGeRTxOQIV3AJlYtEWWJpC74JHwAIsxlH8MU=
+-github.com/gotk3/gotk3 v0.4.0/go.mod h1:Eew3QBwAOBTrfFFDmsDE5wZWbcagBL1NUslj1GhRveo=
++github.com/gotk3/gotk3 v0.6.0 h1:Aqlq4/6VabNwtCyA9M9zFNad5yHAqCi5heWnZ9y+3dA=
++github.com/gotk3/gotk3 v0.6.0/go.mod h1:/hqFpkNa9T3JgNAE2fLvCdov7c5bw//FHNZrZ3Uv9/Q=
+ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
+ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 000000000000..4be1f15e21ad
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,44 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.26.0
+revision=1
+archs="x86_64"
+wrksrc="${pkgname}-setup-${version}"
+build_style=go
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config nodejs"
+makedepends="gtk+3-devel"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://itch.io/"
+distfiles="
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png"
+checksum="
+ 9b1418442e1ec5104e7b76762b82b24ca7ff0edc92e6113859b37238dd1bf86c
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
+
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
+}
+
+do_install() {
+	vbin ${GOPATH}/bin/itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (20 preceding siblings ...)
  2021-06-18  1:20 ` bugcrazy
@ 2021-06-18  2:16 ` bugcrazy
  2021-07-17  2:07 ` [PR REVIEW] " ericonr
                   ` (10 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-06-18  2:16 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 5795 bytes --]

From 1e1ec1e1f86cb528515c10839dc89f51232d9fa6 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

Add file

Add shell script file

Applied suggested changes to the template

Update version

Remove i686 architecture

There is no linux-i686.zip package to download from the project's github, making it impossible to compile on i686.

Applied suggested changes

Added Patch

The version of Gotk3 0.4.0, does not compile with Go 1.16, the 0.6.0 version compiles fine!

Update to 1.26.0

Replaced nodejs-lts by nodejs, nodeJs-lts conflicts with git.
---
 srcpkgs/itch/files/io.itch.itch.desktop      | 11 +++++
 srcpkgs/itch/files/itch                      |  2 +
 srcpkgs/itch/patches/fix-version-error.patch | 25 +++++++++++
 srcpkgs/itch/template                        | 44 ++++++++++++++++++++
 4 files changed, 82 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop
 create mode 100644 srcpkgs/itch/files/itch
 create mode 100644 srcpkgs/itch/patches/fix-version-error.patch
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 000000000000..b760f9c51774
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily
diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 000000000000..b3601fa8405c
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"
diff --git a/srcpkgs/itch/patches/fix-version-error.patch b/srcpkgs/itch/patches/fix-version-error.patch
new file mode 100644
index 000000000000..8c025ee3a4dc
--- /dev/null
+++ b/srcpkgs/itch/patches/fix-version-error.patch
@@ -0,0 +1,25 @@
+--- go.mod	2021-04-21 22:34:25.000000000 -0300
++++ go.mod	2021-06-16 07:42:44.652159000 -0300
+@@ -11,7 +11,7 @@
+ 	github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
+ 	github.com/go-ole/go-ole v1.2.4 // indirect
+ 	github.com/google/uuid v1.1.1
+-	github.com/gotk3/gotk3 v0.4.0
++	github.com/gotk3/gotk3 v0.6.0
+ 	github.com/itchio/go-itchio v0.0.0-20200402182019-61224e60358e
+ 	github.com/itchio/headway v0.0.0-20200301160421-e15721f23905
+ 	github.com/itchio/httpkit v0.0.0-20200618110940-5044e418b971
+
+--- go.sum	2021-04-21 22:34:25.000000000 -0300
++++ go.sum	2021-06-16 07:42:25.948158000 -0300
+@@ -92,8 +92,8 @@
+ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+-github.com/gotk3/gotk3 v0.4.0 h1:TIuhyQitGeRTxOQIV3AJlYtEWWJpC74JHwAIsxlH8MU=
+-github.com/gotk3/gotk3 v0.4.0/go.mod h1:Eew3QBwAOBTrfFFDmsDE5wZWbcagBL1NUslj1GhRveo=
++github.com/gotk3/gotk3 v0.6.0 h1:Aqlq4/6VabNwtCyA9M9zFNad5yHAqCi5heWnZ9y+3dA=
++github.com/gotk3/gotk3 v0.6.0/go.mod h1:/hqFpkNa9T3JgNAE2fLvCdov7c5bw//FHNZrZ3Uv9/Q=
+ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
+ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 000000000000..4be1f15e21ad
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,44 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.26.0
+revision=1
+archs="x86_64"
+wrksrc="${pkgname}-setup-${version}"
+build_style=go
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config nodejs"
+makedepends="gtk+3-devel"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://itch.io/"
+distfiles="
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png"
+checksum="
+ 9b1418442e1ec5104e7b76762b82b24ca7ff0edc92e6113859b37238dd1bf86c
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
+
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
+}
+
+do_install() {
+	vbin ${GOPATH}/bin/itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (21 preceding siblings ...)
  2021-06-18  2:16 ` bugcrazy
@ 2021-07-17  2:07 ` ericonr
  2021-07-17  2:09 ` ericonr
                   ` (9 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2021-07-17  2:07 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r671592699

Comment:
In this case we know better; use `exec`.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (22 preceding siblings ...)
  2021-07-17  2:07 ` [PR REVIEW] " ericonr
@ 2021-07-17  2:09 ` ericonr
  2021-07-20  9:17 ` bugcrazy
                   ` (8 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2021-07-17  2:09 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r671592866

Comment:
Why is this arch restricted? One can run windows games on musl...

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (23 preceding siblings ...)
  2021-07-17  2:09 ` ericonr
@ 2021-07-20  9:17 ` bugcrazy
  2021-07-20  9:28 ` bugcrazy
                   ` (7 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-07-20  9:17 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r672952328

Comment:
With EXEC, it occurs that application understands, each new startup is the first, due there is it, always does the framework download, even if you have done it previously!

2021/07/19 22:29:59 itch-setup will log to /tmp/itch-setup-log.txt
2021/07/19 22:29:59 =========================================
2021/07/19 22:29:59 itch-setup "head, no build date" starting up at "2021-07-19 22:29:59.997866826 -0300 -03 m=+0.023844080" with arguments:
2021/07/19 22:29:59 "itch-setup"
2021/07/19 22:29:59 =========================================
2021/07/19 22:29:59 App name detected: itch
2021/07/19 22:29:59 Locale:  en-US
2021/07/19 22:30:00 Initializing installer GUI...
2021/07/19 22:30:00 Using GTK UI
2021/07/19 22:30:00 Initializing (itch) multiverse @ (/home/bugcrazy/.itch)
2021/07/19 22:30:00 (/home/bugcrazy/.itch)(current = "25.5.1", ready = "")
2021/07/19 22:30:00 Loading image resources...
2021/07/19 22:30:00 Setting up progress bar...
2021/07/19 22:30:00 Positioning and showing window...
2021/07/19 22:30:01 Will install version 25.5.1
2021/07/19 22:30:03 Reading signature...
2021/07/19 22:30:03 Installing 197.43 MiB (295 files, 25 dirs, 0 symlinks)
2021/07/19 22:30:03 Looks like (25.5.1) is already installed to (/home/bugcrazy/.itch/app-25.5.1)
2021/07/19 22:30:03 Let's just heal that
2021/07/19 22:30:03 Installing to (/home/bugcrazy/.itch/app-25.5.1)
2021/07/19 22:30:03 Healing (/home/bugcrazy/.itch/app-25.5.1)...
2021/07/19 22:30:07 0 B was healed @ 0 B/s (4s total)
2021/07/19 22:30:07 Healed in-place
2021/07/19 22:30:07 No validate handler, assuming good!
2021/07/19 22:30:07 Determining whether or not we've been installed via an OS package...
2021/07/19 22:30:07 Our execPath (/usr/bin/itch-setup) is somewhere in /usr, not installing desktop files
2021/07/19 22:30:07 Launching (25.5.1) from (/home/bugcrazy/.itch/app-25.5.1)
2021/07/19 22:30:07 Kernel should support SUID sandboxing, leaving it enabled
2021/07/19 22:30:07 App launched, getting out of the way

With the standard argument this does not occur. 

2021/07/19 22:36:37 itch-setup will log to /tmp/itch-setup-log.txt
2021/07/19 22:36:37 =========================================
2021/07/19 22:36:37 itch-setup "head, no build date" starting up at "2021-07-19 22:36:37.731537432 -0300 -03 m=+0.078722338" with arguments:
2021/07/19 22:36:37 "itch-setup"
2021/07/19 22:36:37 "--prefer-launch"
2021/07/19 22:36:37 "--"
2021/07/19 22:36:37 "@$"
2021/07/19 22:36:37 =========================================
2021/07/19 22:36:37 App name detected: itch
2021/07/19 22:36:37 Locale:  en-US
2021/07/19 22:36:37 Initializing installer GUI...
2021/07/19 22:36:37 Using GTK UI
2021/07/19 22:36:37 Initializing (itch) multiverse @ (/home/bugcrazy/.itch)
2021/07/19 22:36:37 (/home/bugcrazy/.itch)(current = "25.5.1", ready = "")
2021/07/19 22:36:37 Launch preferred, attempting...
2021/07/19 22:36:37 Launching (25.5.1) from (/home/bugcrazy/.itch/app-25.5.1)
2021/07/19 22:36:37 Kernel should support SUID sandboxing, leaving it enabled
2021/07/19 22:36:37 App launched, getting out of the way

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (24 preceding siblings ...)
  2021-07-20  9:17 ` bugcrazy
@ 2021-07-20  9:28 ` bugcrazy
  2021-07-20 12:37 ` ericonr
                   ` (6 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-07-20  9:28 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r672960432

Comment:
In the case with musl, compile with archs="x86_64*" and patch_args="-Np0", but application does framework donwload to work, which are compiled for GNU libc. 

Which are these: 

https://broth.itch.ovh/itch/linux-amd64/25.5.1/archive/default

https://broth.itch.ovh/butler/linux-amd64/15.21.0/archive/default

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (25 preceding siblings ...)
  2021-07-20  9:28 ` bugcrazy
@ 2021-07-20 12:37 ` ericonr
  2021-07-20 12:38 ` ericonr
                   ` (5 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2021-07-20 12:37 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r673082245

Comment:
Huh, why would that happen...

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (26 preceding siblings ...)
  2021-07-20 12:37 ` ericonr
@ 2021-07-20 12:38 ` ericonr
  2021-07-21 20:47 ` bugcrazy
                   ` (4 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2021-07-20 12:38 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r673083370

Comment:
Does it actually need the framework to go anything useful?

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (27 preceding siblings ...)
  2021-07-20 12:38 ` ericonr
@ 2021-07-21 20:47 ` bugcrazy
  2021-07-21 20:58 ` bugcrazy
                   ` (3 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-07-21 20:47 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r674334251

Comment:
This is the author's thing of the software, who preferred to use this arguments.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (28 preceding siblings ...)
  2021-07-21 20:47 ` bugcrazy
@ 2021-07-21 20:58 ` bugcrazy
  2022-04-17  2:06 ` github-actions
                   ` (2 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2021-07-21 20:58 UTC (permalink / raw)
  To: ml

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

New review comment by bugcrazy on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r674341085

Comment:
It's electron, you need to work, I opened an issue to have musl versions of the framework.

https://github.com/itchio/itch/issues/2683

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (29 preceding siblings ...)
  2021-07-21 20:58 ` bugcrazy
@ 2022-04-17  2:06 ` github-actions
  2022-04-18  9:47 ` [PR PATCH] [Updated] " bugcrazy
  2022-05-03  2:13 ` [PR PATCH] [Closed]: " github-actions
  32 siblings, 0 replies; 33+ messages in thread
From: github-actions @ 2022-04-17  2:06 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#issuecomment-1100787022

Comment:
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.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Updated] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (30 preceding siblings ...)
  2022-04-17  2:06 ` github-actions
@ 2022-04-18  9:47 ` bugcrazy
  2022-05-03  2:13 ` [PR PATCH] [Closed]: " github-actions
  32 siblings, 0 replies; 33+ messages in thread
From: bugcrazy @ 2022-04-18  9:47 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by bugcrazy against master on the void-packages repository

https://github.com/bugcrazy/void-packages patch-4
https://github.com/void-linux/void-packages/pull/22863

New package: Itch 
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-4-22863.patch --]
[-- Type: text/x-diff, Size: 5795 bytes --]

From 3bb032fa6d69fb749905ba32ef2625b9e67062d6 Mon Sep 17 00:00:00 2001
From: bugcrazy <39757967+bugcrazy@users.noreply.github.com>
Date: Sat, 13 Jun 2020 04:41:08 -0300
Subject: [PATCH]  New package: Itch

Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

Add file

Add shell script file

Applied suggested changes to the template

Update version

Remove i686 architecture

There is no linux-i686.zip package to download from the project's github, making it impossible to compile on i686.

Applied suggested changes

Added Patch

The version of Gotk3 0.4.0, does not compile with Go 1.16, the 0.6.0 version compiles fine!

Update to 1.26.0

Replaced nodejs-lts by nodejs, nodeJs-lts conflicts with git.
---
 srcpkgs/itch/files/io.itch.itch.desktop      | 11 +++++
 srcpkgs/itch/files/itch                      |  2 +
 srcpkgs/itch/patches/fix-version-error.patch | 25 +++++++++++
 srcpkgs/itch/template                        | 44 ++++++++++++++++++++
 4 files changed, 82 insertions(+)
 create mode 100644 srcpkgs/itch/files/io.itch.itch.desktop
 create mode 100644 srcpkgs/itch/files/itch
 create mode 100644 srcpkgs/itch/patches/fix-version-error.patch
 create mode 100644 srcpkgs/itch/template

diff --git a/srcpkgs/itch/files/io.itch.itch.desktop b/srcpkgs/itch/files/io.itch.itch.desktop
new file mode 100644
index 000000000000..b760f9c51774
--- /dev/null
+++ b/srcpkgs/itch/files/io.itch.itch.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=itch
+TryExec=itch
+Exec=itch %U
+Icon=itch
+Terminal=false
+Categories=Game;
+MimeType=x-scheme-handler/itchio;x-scheme-handler/itch;
+X-GNOME-Autostart-enabled=true
+Comment=Install and play itch.io games easily
diff --git a/srcpkgs/itch/files/itch b/srcpkgs/itch/files/itch
new file mode 100644
index 000000000000..b3601fa8405c
--- /dev/null
+++ b/srcpkgs/itch/files/itch
@@ -0,0 +1,2 @@
+#!/bin/sh
+itch-setup --prefer-launch -- "@$"
diff --git a/srcpkgs/itch/patches/fix-version-error.patch b/srcpkgs/itch/patches/fix-version-error.patch
new file mode 100644
index 000000000000..8c025ee3a4dc
--- /dev/null
+++ b/srcpkgs/itch/patches/fix-version-error.patch
@@ -0,0 +1,25 @@
+--- go.mod	2021-04-21 22:34:25.000000000 -0300
++++ go.mod	2021-06-16 07:42:44.652159000 -0300
+@@ -11,7 +11,7 @@
+ 	github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
+ 	github.com/go-ole/go-ole v1.2.4 // indirect
+ 	github.com/google/uuid v1.1.1
+-	github.com/gotk3/gotk3 v0.4.0
++	github.com/gotk3/gotk3 v0.6.0
+ 	github.com/itchio/go-itchio v0.0.0-20200402182019-61224e60358e
+ 	github.com/itchio/headway v0.0.0-20200301160421-e15721f23905
+ 	github.com/itchio/httpkit v0.0.0-20200618110940-5044e418b971
+
+--- go.sum	2021-04-21 22:34:25.000000000 -0300
++++ go.sum	2021-06-16 07:42:25.948158000 -0300
+@@ -92,8 +92,8 @@
+ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
+ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+-github.com/gotk3/gotk3 v0.4.0 h1:TIuhyQitGeRTxOQIV3AJlYtEWWJpC74JHwAIsxlH8MU=
+-github.com/gotk3/gotk3 v0.4.0/go.mod h1:Eew3QBwAOBTrfFFDmsDE5wZWbcagBL1NUslj1GhRveo=
++github.com/gotk3/gotk3 v0.6.0 h1:Aqlq4/6VabNwtCyA9M9zFNad5yHAqCi5heWnZ9y+3dA=
++github.com/gotk3/gotk3 v0.6.0/go.mod h1:/hqFpkNa9T3JgNAE2fLvCdov7c5bw//FHNZrZ3Uv9/Q=
+ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
+ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
diff --git a/srcpkgs/itch/template b/srcpkgs/itch/template
new file mode 100644
index 000000000000..4be1f15e21ad
--- /dev/null
+++ b/srcpkgs/itch/template
@@ -0,0 +1,44 @@
+# Template file for 'itch'
+pkgname=itch
+version=1.26.0
+revision=1
+archs="x86_64"
+wrksrc="${pkgname}-setup-${version}"
+build_style=go
+go_import_path="github.com/itchio/itch-setup"
+hostmakedepends="git pkg-config nodejs"
+makedepends="gtk+3-devel"
+short_desc="Itch.io indie games client for Linux"
+maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
+license="MIT"
+homepage="https://itch.io/"
+distfiles="
+ https://github.com/itchio/itch-setup/archive/v${version}.tar.gz
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon16.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon32.png
+ https://raw.githubusercontent.com/itchio/itch/v25.4.1/release/images/itch-icons/icon48.png"
+checksum="
+ 9b1418442e1ec5104e7b76762b82b24ca7ff0edc92e6113859b37238dd1bf86c
+ c1e7154020c847cd5cd75d544a7e5dbe8bd495fe87a664afd24c4a952a7e8a78
+ e38c4a04b2ced31d2a13b72f310e069beff73a7cf887a4cbde57fa7b19c67fab
+ 5f38d0b884053b10d856151931b7699723c4a28cf14622c95bc6022bec391c3f"
+skip_extraction="icon16.png icon32.png icon48.png"
+
+pre_build() {
+	npm install
+	export PATH="$PATH:${wrksrc}/node_modules/.bin/"
+}
+
+do_install() {
+	vbin ${GOPATH}/bin/itch-setup
+	vbin ${FILESDIR}/itch
+	vmkdir usr/share/applications
+	vmkdir usr/share/icons/hicolor/16x16/apps
+	vmkdir usr/share/icons/hicolor/32x32/apps
+	vmkdir usr/share/icons/hicolor/48x48/apps
+	vinstall ${FILESDIR}/io.itch.itch.desktop 0644 usr/share/applications
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon16.png ${DESTDIR}/usr/share/icons/hicolor/16x16/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon32.png ${DESTDIR}/usr/share/icons/hicolor/32x32/apps/itch.png
+	cp ${XBPS_SRCDISTDIR}/itch-${version}/icon48.png ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/itch.png
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR PATCH] [Closed]: New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
                   ` (31 preceding siblings ...)
  2022-04-18  9:47 ` [PR PATCH] [Updated] " bugcrazy
@ 2022-05-03  2:13 ` github-actions
  32 siblings, 0 replies; 33+ messages in thread
From: github-actions @ 2022-05-03  2:13 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New package: Itch 
https://github.com/void-linux/void-packages/pull/22863

Description:
Indie games client for Linux, the client is under MIT license, every game is DRM free and is delivered via direct download rather than codes you would have to enter into Steam or another launcher.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [PR REVIEW] New package: Itch 
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
  2020-12-18  6:11 ` [PR REVIEW] New package: Itch ericonr
@ 2020-12-18  6:11 ` ericonr
  2020-12-18  6:11 ` ericonr
                   ` (30 subsequent siblings)
  32 siblings, 0 replies; 33+ messages in thread
From: ericonr @ 2020-12-18  6:11 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/22863#discussion_r545593123

Comment:
Maybe ask for upstream to include the script? It looks useful.

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2022-05-03  2:13 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22863@inbox.vuxu.org>
2020-12-18  6:11 ` [PR REVIEW] New package: Itch ericonr
2020-12-18  6:11 ` ericonr
2020-12-18  6:11 ` ericonr
2020-12-18  6:11 ` ericonr
2020-12-18  6:11 ` ericonr
2020-12-18  6:11 ` ericonr
2020-12-24 20:15 ` bugcrazy
2020-12-24 20:26 ` bugcrazy
2020-12-24 20:43 ` bugcrazy
2020-12-24 20:47 ` bugcrazy
2020-12-24 20:52 ` bugcrazy
2020-12-24 21:02 ` [PR PATCH] [Updated] " bugcrazy
2020-12-24 21:22 ` bugcrazy
2021-04-18  5:25 ` [PR REVIEW] " ericonr
2021-04-21  1:46 ` bugcrazy
2021-04-21  2:02 ` ericonr
2021-04-21  2:27 ` [PR PATCH] [Updated] " bugcrazy
2021-04-21  2:31 ` [PR REVIEW] " bugcrazy
2021-06-18  0:54 ` [PR PATCH] [Updated] " bugcrazy
2021-06-18  1:09 ` bugcrazy
2021-06-18  1:20 ` bugcrazy
2021-06-18  2:16 ` bugcrazy
2021-07-17  2:07 ` [PR REVIEW] " ericonr
2021-07-17  2:09 ` ericonr
2021-07-20  9:17 ` bugcrazy
2021-07-20  9:28 ` bugcrazy
2021-07-20 12:37 ` ericonr
2021-07-20 12:38 ` ericonr
2021-07-21 20:47 ` bugcrazy
2021-07-21 20:58 ` bugcrazy
2022-04-17  2:06 ` github-actions
2022-04-18  9:47 ` [PR PATCH] [Updated] " bugcrazy
2022-05-03  2:13 ` [PR PATCH] [Closed]: " github-actions

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).