aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAquaOneLove <aquaonelove@proton.me>2024-05-12 15:51:59 +0300
committerAquaOneLove <aquaonelove@proton.me>2024-05-12 15:55:24 +0300
commit57f79a76e6785de48cb8282a9032bb70939f208e (patch)
tree3659c8cf9fd5854faa088c910ecd343ad2911917 /games-arcade
parentnet-misc/maestral-qt: enable py3.12 (diff)
downloadguru-57f79a76e6785de48cb8282a9032bb70939f208e.tar.gz
guru-57f79a76e6785de48cb8282a9032bb70939f208e.tar.bz2
guru-57f79a76e6785de48cb8282a9032bb70939f208e.zip
games-arcade/tetrio-desktop: Change name for tetrio-plus.zip, add version 9
Signed-off-by: AquaOneLove <aquaonelove@proton.me>
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/tetrio-desktop/Manifest4
-rw-r--r--games-arcade/tetrio-desktop/files/tetrio-desktop-9-application.patch16
-rw-r--r--games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild4
-rw-r--r--games-arcade/tetrio-desktop/tetrio-desktop-9.ebuild103
4 files changed, 124 insertions, 3 deletions
diff --git a/games-arcade/tetrio-desktop/Manifest b/games-arcade/tetrio-desktop/Manifest
index ab43b6197..f26dd8426 100644
--- a/games-arcade/tetrio-desktop/Manifest
+++ b/games-arcade/tetrio-desktop/Manifest
@@ -1,2 +1,4 @@
DIST tetrio-desktop-8.deb 51480890 BLAKE2B 641606cc29113098d3b686b17164669203e5c91801119e88a8cd7b4ef331bf25bfbed55d443bdb19d2a5b755919194861e4540489d85ebbdefd24b54c5c895cf SHA512 04841ac7186bb864d4b8dfc15fee287ecbe713b3971521f703dd054b61cbbba481b296228ac9d83b0b58dcdd6b715d827c03edac4a1c97c11a362d85e015bcdd
-DIST tetrio-plus.zip 4733782 BLAKE2B 493361cb92dbfa0f0ed47b8c132cb43f91941ed85f2127398c4eb52a7c3b6e9be8b38fa4dd6374930197cfe9dc423aa6b1dbd790fbfc3fe96f042487b44b6a1a SHA512 ab9402085b6ec5e37e70e2945300fa05902a6da82b5512931851cd08a3eff90604e835cef162c077ac703d570ed36886952a6d06a7906ed2a3601e71f361d083
+DIST tetrio-desktop-9.deb 74732756 BLAKE2B d225276ec77c23a8b4a792cd7ef866563d29b71adb557566dd6a18be96d4789e3a84f661216feea2a63d235aabb625c489b7177dfd6ccc7993fad90fe58bd8ad SHA512 a8852ea847d12cac46d29a26c7793f4f1911d3336647392cfe16cd955c8e1175fe0ff77764452713c0498f6b1a3044aaf4d131a0ce3b58861be59fd60a8a6e8c
+DIST tetrio-plus-8.zip 4733782 BLAKE2B 493361cb92dbfa0f0ed47b8c132cb43f91941ed85f2127398c4eb52a7c3b6e9be8b38fa4dd6374930197cfe9dc423aa6b1dbd790fbfc3fe96f042487b44b6a1a SHA512 ab9402085b6ec5e37e70e2945300fa05902a6da82b5512931851cd08a3eff90604e835cef162c077ac703d570ed36886952a6d06a7906ed2a3601e71f361d083
+DIST tetrio-plus-9.zip 17011563 BLAKE2B 111834d5ff0ebc3d652478d2812945e1a763ee85ef3af5e7d2da32a9b023b9d3e3cb96866fbb7c0f5173635c043ca2d432c7f8bbf06b1daaef7cc65edf575d25 SHA512 bde79ae2c3e4d7757db7c17c079e55113f1e061f8fd8ad1cb2f17d918098a7aa33077625138c6199fb86313e9d0f15d9fcf0806ffcb77ca57321d2abcb413453
diff --git a/games-arcade/tetrio-desktop/files/tetrio-desktop-9-application.patch b/games-arcade/tetrio-desktop/files/tetrio-desktop-9-application.patch
new file mode 100644
index 000000000..a0ea14736
--- /dev/null
+++ b/games-arcade/tetrio-desktop/files/tetrio-desktop-9-application.patch
@@ -0,0 +1,16 @@
+diff --git a/usr/share/applications/tetrio-desktop.desktop b/usr/share/applications/tetrio-desktop.desktop
+index 802f685..898b247 100644
+--- a/usr/share/applications/tetrio-desktop.desktop
++++ b/usr/share/applications/tetrio-desktop.desktop
+@@ -1,7 +1,7 @@
+ [Desktop Entry]
+ Name=TETR.IO
+-Exec=/opt/TETR.IO/TETR.IO %U
++Exec="/usr/bin/tetrio-desktop" %U
+ Terminal=false
+ Type=Application
+ Icon=TETR.IO
+ StartupWMClass=TETR.IO
+ Comment=Puzzle together in this modern yet familiar online stacker!
+ MimeType=x-scheme-handler/tetrio;
+ Categories=Game;BlocksGame;
diff --git a/games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild b/games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild
index 352bf9090..2edcaaa97 100644
--- a/games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild
+++ b/games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://tetr.io/"
SRC_URI="https://tetr.io/about/desktop/builds/${PV}/TETR.IO%20Setup.deb -> ${P}.deb
tetrio-plus? ( https://gitlab.com/UniQMG/tetrio-plus/uploads/\
-a7342b94f03d670b72235ab453c427a5/tetrio-plus_0.26.0_app.asar.zip -> tetrio-plus.zip )"
+a7342b94f03d670b72235ab453c427a5/tetrio-plus_0.26.0_app.asar.zip -> tetrio-plus-${PV}.zip )"
S="${WORKDIR}"
@@ -64,7 +64,7 @@ PATCHES=(
src_unpack() {
unpack_deb "${P}.deb"
if use tetrio-plus; then
- unpack "tetrio-plus.zip"
+ unpack "tetrio-plus-${PV}.zip"
fi
}
diff --git a/games-arcade/tetrio-desktop/tetrio-desktop-9.ebuild b/games-arcade/tetrio-desktop/tetrio-desktop-9.ebuild
new file mode 100644
index 000000000..b79d499f9
--- /dev/null
+++ b/games-arcade/tetrio-desktop/tetrio-desktop-9.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker desktop xdg
+
+DESCRIPTION="TETR.IO desktop client."
+HOMEPAGE="https://tetr.io/"
+
+SRC_URI="https://tetr.io/about/desktop/builds/${PV}/TETR.IO%20Setup.deb -> ${P}.deb
+tetrio-plus? ( https://gitlab.com/UniQMG/tetrio-plus/-/jobs/6734605389/artifacts/raw/tetrio-plus_v0.27.2_for_desktop_v9.asar.zip -> tetrio-plus-${PV}.zip )"
+
+S="${WORKDIR}"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="tetrio-plus"
+
+RESTRICT="bindist mirror test strip"
+
+BDEPEND="
+ app-arch/unzip
+"
+RDEPEND="
+ x11-libs/libxkbcommon
+ app-accessibility/at-spi2-core:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/mesa
+ net-print/cups
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/gtk+:3
+ x11-libs/libdrm
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/pango
+"
+
+QA_PREBUILT=".*"
+
+PATCHES=(
+ "${FILESDIR}/${P}-application.patch"
+)
+
+src_unpack() {
+ unpack_deb "${P}.deb"
+ if use tetrio-plus; then
+ unpack "tetrio-plus-${PV}.zip"
+ fi
+}
+
+src_prepare() {
+ mv "${S}/usr/share/applications/TETR.IO.desktop"\
+ "${S}/usr/share/applications/tetrio-desktop.desktop"
+
+ default
+
+ if use tetrio-plus; then
+ mv "${S}/app.asar" "${S}/opt/TETR.IO/resources/app.asar" || die
+ fi
+
+ mv "${S}/opt/TETR.IO" "${S}/opt/${PN}" || die
+}
+
+src_install() {
+ ICONDIR="usr/share/icons/hicolor"
+ DESTDIR="/opt/${PN}"
+
+ doicon -s 256 "${ICONDIR}/256x256/apps/TETR.IO.png"
+ doicon -s 512 "${ICONDIR}/512x512/apps/TETR.IO.png"
+
+ domenu "usr/share/applications/tetrio-desktop.desktop"
+
+ dodir /opt/${PN}
+
+ exeinto "${DESTDIR}"
+ doexe "opt/${PN}/TETR.IO" "opt/${PN}/chrome-sandbox" "opt/${PN}/libEGL.so" \
+ "opt/${PN}/libffmpeg.so" "opt/${PN}/libGLESv2.so" "opt/${PN}/libvk_swiftshader.so" "opt/${PN}/libvulkan.so.1"
+
+ insinto "${DESTDIR}"
+ doins "opt/${PN}/chrome_100_percent.pak" "opt/${PN}/chrome_200_percent.pak" "opt/${PN}/icudtl.dat" \
+ "opt/${PN}/resources.pak" "opt/${PN}/snapshot_blob.bin" "opt/${PN}/v8_context_snapshot.bin"\
+ "opt/${PN}/vk_swiftshader_icd.json"
+
+ doins -r "opt/${PN}/locales" "opt/${PN}/resources"
+
+ fowners root "${DESTDIR}/chrome-sandbox"
+ fperms 4711 "${DESTDIR}/chrome-sandbox"
+
+ dosym -r "/opt/${PN}/TETR.IO" "/usr/bin/${PN}"
+}