1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 16:02:39 +01:00

games-arcade/spacecadetpinball: add ebuild

This commit is contained in:
2021-10-17 21:43:44 +02:00
parent 06964175f5
commit 3451232625
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
AUX SpaceCadetPinball-icon.png 22250 BLAKE2B a765e5fceaf4917435ec4843cb485b50ec66cd95d4502129b926e21ad6a7ec03c5e7ecc4b2c77584f0f9595602c24f563b66b62ed0014f1111d67f176c4360d8 SHA512 6059fb806fe2f35a38b0e517e003844d5ee116928b7d3585022ea022c72d6fec309ec6ea1e0757a1de749c086a71c783bb902548058f1c6b23931f79f58eb479
AUX spacecadetpinball-basepath.patch 625 BLAKE2B 5b5fdf9fe5319bfebd6dc12586935894dce12e14b4411240d59c9e21bcd7580b2de2f5db857c6a61a3cdf2aad40acc5ecfbcfa6f086528c0c7324e53ee94df84 SHA512 033ff00ccdd634251f6b5c4d32e44316b9145669e3d1f2e4222e47d486d6270f68f884625346a02cce38e4e0884b44b2a95b8d562e2a3469915dc0cc41724911
DIST Full-Tilt-Pinball_Win_EN.zip 9552541 BLAKE2B 8236d0534032f3202c7b91207ae1e71d53f2a2edb899803ad50a9dae8fb00040c903b24131adc6fd129402ff594c035fef53e09228eace38918a1b25d06580fb SHA512 428acef149f0671c794840ee9e05381e31f54a59a4d9c3a0b3abdfb0fec26909a3f3cffd17f4679043e98f9a50d026d1094d8d8b4204a37fa0f927e8c8e3b805
DIST spacecadetpinball-1.1.2_p20211710.tar.gz 933145 BLAKE2B ffd0eb8be357438f6ba1da6e6739a3cd0409e7e7c87b5fe95351f6ad61eb7754423f75147ee44b50276f9d0b8abd22cb179b58dba5588e08d3c49f091261c72d SHA512 ab3297e9d23ffe1b0215909859ccc57c5345f189e67e69e082d440da1dc04180ab617416c90fd6c19beff99c6f8e999e601eb614bb69026e5c8dcedbee485742
EBUILD spacecadetpinball-1.1.2_p20211710.ebuild 1135 BLAKE2B 6975d6f4daaff55bd9d4e6301198ace56c1b0c0f5c10b88021d4c62a4f1514e68ac0fa42025cd7fd068038486db137cee27090a3b7cb159575cf74a0d7cd5a23 SHA512 3389d1d5f7a0a8e4993c2b5efe56c33c2ec362299ceb5747c586273c3cbc5040326f61990dafd60fbc3cee3c22a5ab6aa6ae7f5aadfdba07562d6ae7adc5541a

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,13 @@
diff -dNur a/SpaceCadetPinball/winmain.cpp b/SpaceCadetPinball/winmain.cpp
--- a/SpaceCadetPinball/winmain.cpp 2021-10-17 17:18:29.000000000 +0200
+++ b/SpaceCadetPinball/winmain.cpp 2021-10-17 21:11:46.800147799 +0200
@@ -56,7 +56,8 @@
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Could not initialize SDL2", SDL_GetError(), nullptr);
return 1;
}
- BasePath = SDL_GetBasePath();
+ /* BasePath = SDL_GetBasePath(); */
+ BasePath = "/usr/share/spacecadetpinball/";
pinball::quickFlag = strstr(lpCmdLine, "-quick") != nullptr;
DatFileName = options::get_string("Pinball Data", pinball::get_rc_string(168, 0));

View File

@@ -0,0 +1,43 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop
MY_PN="SpaceCadetPinball"
EGIT_COMMIT="06b760e8dd1b8ace5ef7c427c047ca9e911f93b3"
DESCRIPTION="Reverse engineering of 3D Pinball Space Cadet"
HOMEPAGE="https://github.com/k4zmu2a/SpaceCadetPinball"
SRC_URI="https://github.com/k4zmu2a/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
https://davipinheiro.com/wp-content/uploads/2021/02/Full-Tilt-Pinball_Win_EN.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="media-libs/libsdl2[haptic]
media-libs/sdl2-mixer[wav,midi,timidity]"
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}/${MY_PN}-${EGIT_COMMIT}"
PATCHES="${FILESDIR}/${PN}-basepath.patch"
src_install() {
dobin ${S}/bin/${MY_PN} || die
doicon ${FILESDIR}/${MY_PN}-icon.png
make_desktop_entry ${MY_PN} '3D Pinball Space Cadet' ${MY_PN}-icon "Game;ArcadeGame"
insopts -m 0644
insinto /usr/share/spacecadetpinball
doins ${WORKDIR}/FULLTILT/CADET/CADET.DAT
insinto /usr/share/spacecadetpinball/SOUND
for snd in ${WORKDIR}/FULLTILT/CADET/SOUND/*
do
doins "${snd}"
done
}