diff --git a/games-arcade/osu-lazer-bin/Manifest b/games-arcade/osu-lazer-bin/Manifest new file mode 100644 index 0000000..aeaa93a --- /dev/null +++ b/games-arcade/osu-lazer-bin/Manifest @@ -0,0 +1 @@ +DIST osu-lazer-2024.312.1.AppImage 155296960 BLAKE2B b920870e64bfc11f6ec8202c27e4c5a44477c11a399f0781992a174f898914e35b9ac0124d2b1ae57de9e4ceae200613aba77f64e6210cd5bdb711eeb414fc90 SHA512 740b502d284ed3f7e37409150887851770f7e63e44f29a2e43f29a4ea05b78a569c163a67db7cd4a4a1a7a78e4ba2247893b76e595211da4fd02e49c94d330a9 diff --git a/games-arcade/osu-lazer-bin/files/osu-lazer.bash b/games-arcade/osu-lazer-bin/files/osu-lazer.bash new file mode 100644 index 0000000..9770388 --- /dev/null +++ b/games-arcade/osu-lazer-bin/files/osu-lazer.bash @@ -0,0 +1,2 @@ +#!/usr/bin/bash +OSU_EXTERNAL_UPDATE_PROVIDER=true /usr/lib/osu-lazer/osu! "$@" diff --git a/games-arcade/osu-lazer-bin/files/osu-lazer.desktop b/games-arcade/osu-lazer-bin/files/osu-lazer.desktop new file mode 100644 index 0000000..7b6f985 --- /dev/null +++ b/games-arcade/osu-lazer-bin/files/osu-lazer.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=osu!lazer +Icon=osu-lazer +Comment=Rhythm is just a *click* away! +MimeType=application/x-osu-lazer-beatmap;application/x-osu-lazer-skin;x-scheme-handler/osu; +Exec=/usr/bin/osu-lazer %U +Categories=Game; +Terminal=false +StartupWMClass=osu! +StartupNotify=true diff --git a/games-arcade/osu-lazer-bin/files/osu-lazer.xml b/games-arcade/osu-lazer-bin/files/osu-lazer.xml new file mode 100644 index 0000000..3d7de37 --- /dev/null +++ b/games-arcade/osu-lazer-bin/files/osu-lazer.xml @@ -0,0 +1,17 @@ + + + + osu! Beatmap + osu! 谱面 + + + + + + osu! Skin + osu! 皮肤 + + + + + diff --git a/games-arcade/osu-lazer-bin/metadata.xml b/games-arcade/osu-lazer-bin/metadata.xml new file mode 100644 index 0000000..e4c89f3 --- /dev/null +++ b/games-arcade/osu-lazer-bin/metadata.xml @@ -0,0 +1,11 @@ + + + + + me@puqns67.icu + Puqns67 + + + ppy/osu + + diff --git a/games-arcade/osu-lazer-bin/osu-lazer-bin-2024.312.1.ebuild b/games-arcade/osu-lazer-bin/osu-lazer-bin-2024.312.1.ebuild new file mode 100644 index 0000000..62a12c8 --- /dev/null +++ b/games-arcade/osu-lazer-bin/osu-lazer-bin-2024.312.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +_PN="${PN%-bin}" + +DESCRIPTION="A free-to-win rhythm game. Rhythm is just a click away!" +HOMEPAGE="https://osu.ppy.sh/ https://github.com/ppy/osu" +SRC_URI="https://github.com/ppy/osu/releases/download/${PV}/osu.AppImage -> ${_PN}-${PV}.AppImage" + +S="${WORKDIR}/squashfs-root" + +LICENSE="MIT CC-BY-NC-4.0" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="mirror" + +src_unpack() { + cp "${DISTDIR}/${_PN}-${PV}.AppImage" "${WORKDIR}/app" + chmod +x app + ./app --appimage-extract +} + +src_install() { + insinto "/usr/lib/${_PN}" + doins -r usr/bin/* + + newbin "${FILESDIR}/${_PN}.bash" osu-lazer + + newicon 'osu!.png' osu-lazer.png + domenu "${FILESDIR}/${_PN}.desktop" + + insinto /usr/share/mime/packages + doins "${FILESDIR}/${_PN}.xml" +}