diff options
author | AquaOneLove <aquaonelove@proton.me> | 2024-04-26 02:55:58 +0300 |
---|---|---|
committer | AquaOneLove <aquaonelove@proton.me> | 2024-04-26 02:57:01 +0300 |
commit | 2b6d3f6d53229bfe0f0687ac1cb3ab79412bd6f5 (patch) | |
tree | d25bcdee0eb3c0bce1bf22b192f1c24d71e09cf4 /games-arcade | |
parent | net-proxy/ngrok-bin: Fix QA issues in `ngrok-bin-3.0.0` (diff) | |
download | guru-2b6d3f6d53229bfe0f0687ac1cb3ab79412bd6f5.tar.gz guru-2b6d3f6d53229bfe0f0687ac1cb3ab79412bd6f5.tar.bz2 guru-2b6d3f6d53229bfe0f0687ac1cb3ab79412bd6f5.zip |
games-arcade/tetrio-desktop: new package, add 8
Signed-off-by: AquaOneLove <aquaonelove@proton.me>
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/tetrio-desktop/Manifest | 2 | ||||
-rw-r--r-- | games-arcade/tetrio-desktop/files/tetrio-desktop-8-application.patch | 13 | ||||
-rw-r--r-- | games-arcade/tetrio-desktop/metadata.xml | 11 | ||||
-rw-r--r-- | games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild | 110 |
4 files changed, 136 insertions, 0 deletions
diff --git a/games-arcade/tetrio-desktop/Manifest b/games-arcade/tetrio-desktop/Manifest new file mode 100644 index 000000000..ab43b6197 --- /dev/null +++ b/games-arcade/tetrio-desktop/Manifest @@ -0,0 +1,2 @@ +DIST tetrio-desktop-8.deb 51480890 BLAKE2B 641606cc29113098d3b686b17164669203e5c91801119e88a8cd7b4ef331bf25bfbed55d443bdb19d2a5b755919194861e4540489d85ebbdefd24b54c5c895cf SHA512 04841ac7186bb864d4b8dfc15fee287ecbe713b3971521f703dd054b61cbbba481b296228ac9d83b0b58dcdd6b715d827c03edac4a1c97c11a362d85e015bcdd +DIST tetrio-plus.zip 4733782 BLAKE2B 493361cb92dbfa0f0ed47b8c132cb43f91941ed85f2127398c4eb52a7c3b6e9be8b38fa4dd6374930197cfe9dc423aa6b1dbd790fbfc3fe96f042487b44b6a1a SHA512 ab9402085b6ec5e37e70e2945300fa05902a6da82b5512931851cd08a3eff90604e835cef162c077ac703d570ed36886952a6d06a7906ed2a3601e71f361d083 diff --git a/games-arcade/tetrio-desktop/files/tetrio-desktop-8-application.patch b/games-arcade/tetrio-desktop/files/tetrio-desktop-8-application.patch new file mode 100644 index 000000000..b8752e399 --- /dev/null +++ b/games-arcade/tetrio-desktop/files/tetrio-desktop-8-application.patch @@ -0,0 +1,13 @@ +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 + Comment=Puzzle together in this modern yet familiar online stacker! +-Exec="/opt/TETR.IO/tetrio-desktop" %U ++Exec="/usr/bin/tetrio-desktop" %U + Terminal=false + Type=Application + Icon=tetrio-desktop diff --git a/games-arcade/tetrio-desktop/metadata.xml b/games-arcade/tetrio-desktop/metadata.xml new file mode 100644 index 000000000..b5a321ff2 --- /dev/null +++ b/games-arcade/tetrio-desktop/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>aquaonelove@proton.me</email> + <name>AquaOneLove</name> + </maintainer> + <use> + <flag name="tetrio-plus">Install with TETR.IO PLUS modification</flag> + </use> +</pkgmetadata> diff --git a/games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild b/games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild new file mode 100644 index 000000000..a6281968d --- /dev/null +++ b/games-arcade/tetrio-desktop/tetrio-desktop-8.ebuild @@ -0,0 +1,110 @@ +# 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/uploads/\ +a7342b94f03d670b72235ab453c427a5/tetrio-plus_0.26.0_app.asar.zip -> tetrio-plus.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/gdk-pixbuf:2 + x11-libs/libXScrnSaver + x11-libs/libXcursor + x11-libs/libXi + x11-libs/libXrender + x11-libs/libXtst + 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.zip" + fi +} + +src_prepare() { + eapply ${PATCHES} + eapply_user + + 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/tetrio-desktop.png" + doicon -s 512 "${ICONDIR}/512x512/apps/tetrio-desktop.png" + + domenu "usr/share/applications/tetrio-desktop.desktop" + + dodir /opt/${PN} + + exeinto "${DESTDIR}" + doexe "opt/${PN}/tetrio-desktop" "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" + + 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" "opt/${PN}/swiftshader" + + fperms a+x "${DESTDIR}/swiftshader/"* + + fowners root "${DESTDIR}/chrome-sandbox" + fperms 4711 "${DESTDIR}/chrome-sandbox" + + dosym -r "/opt/${PN}/tetrio-desktop" "/usr/bin/${PN}" +} |