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 " +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 +}