games-puzzle/baba-is-you: replace virtual/opengl runtime dep

* Fix unversioned SRC_URI

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2025-04-17 19:33:25 +02:00
parent 9271b8a26e
commit 055cb4a16d
2 changed files with 54 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST BIY_linux.tar.gz 92815828 BLAKE2B 22822b5412058fc7b49c95fa694520f1e6a250b9a674e85f5e9d5bdb432793d37075b265eb3f925708a78396052210276c87b011501f6732c51b90d33380345a SHA512 93ab99998b8705c866bad2d84549c6e13dc824afe9db4cc5f125cb715edddf4f3f42de828498198bcf38e2f10c2520f2cf50216c5e55c4f4d0095aa1b9cf13d3
DIST baba-is-you-474.tar.gz 92815828 BLAKE2B 22822b5412058fc7b49c95fa694520f1e6a250b9a674e85f5e9d5bdb432793d37075b265eb3f925708a78396052210276c87b011501f6732c51b90d33380345a SHA512 93ab99998b8705c866bad2d84549c6e13dc824afe9db4cc5f125cb715edddf4f3f42de828498198bcf38e2f10c2520f2cf50216c5e55c4f4d0095aa1b9cf13d3

View File

@@ -0,0 +1,53 @@
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="Baba Is You"
inherit desktop
DESCRIPTION="Puzzle game where you can change the rules by which you play"
HOMEPAGE="https://www.hempuli.com/baba/"
SRC_URI="${P}.tar.gz"
S="${WORKDIR}/${MY_PN}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="bindist fetch"
# Has bundled media-video/libsdl2 with at least
# [alsa,joystick,pulseaudio,sound]
# Needs alsa-lib to launch with dummy audio even if system has no audio
RDEPEND="
media-libs/alsa-lib
media-libs/libglvnd[X]
"
QA_PREBUILT="opt/*"
pkg_nofetch() {
einfo "Please buy and download the game from:"
einfo " https://hempuli.itch.io/baba"
einfo "and move it to your distfiles directory with the filename '${SRC_URI}'."
}
src_install() {
local arch=$(usex amd64 64 32)
insinto /opt/${PN}
doins -r Assets.dat gamecontrollerdb.txt Data/
exeinto /opt/${PN}/bin${arch}
doexe bin${arch}/Chowdren
exeinto /opt/${PN}
doexe run.sh
newicon icon.bmp ${PN}.bmp
dosym -r /usr/share/pixmaps/${PN}.bmp /opt/${PN}/icon.bmp
make_desktop_entry /usr/bin/${PN} "${MY_PN}" ${PN}.bmp 'Game;LogicGame;'
dosym -r /opt/${PN}/run.sh /usr/bin/${PN}
}