Compare commits

..

2 commits
ps3 ... main

Author SHA1 Message Date
76bf17e1ab
n64 2025-04-15 19:40:36 +02:00
ca0f42c326
add order 2025-04-12 15:25:33 +02:00
4 changed files with 6 additions and 31 deletions

View file

@ -1,12 +0,0 @@
pkgname=game.title
pkgver=1.0
pkgrel=1
pkgdesc="<GAME_DESC>"
arch=('x86_64')
depends=('rpcs3')
source=()
sha256sums=()
package() {
rsync -vzrp ../root/ "$pkgdir/"
}

View file

@ -1,7 +1,7 @@
[ask]
platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch"] }
name = { kind = "text", prompt = "Game Name?" }
desc = { kind = "text", prompt = "Game Description?" }
platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch", "n64"], order = 1 }
name = { kind = "text", prompt = "Game Name?", order = 2 }
desc = { kind = "text", prompt = "Game Description?", order = 3 }
[[actions.replace]]
from = "<GAME_TITLE>"
@ -19,6 +19,9 @@ branch = "wine"
when = { var = "platform", eq = "wiiu"}
branch = "wiiu"
[[actions.branch]]
when = { var = "platform", eq = "n64"}
branch = "n64"
[[actions.branch]]
when = { var = "platform", eq = "3ds"}

View file

@ -1,9 +0,0 @@
[Desktop Entry]
Name=<GAME_TITLE>
Comment=<GAME_DESC>
Exec=rpcs3 --no-gui --fullscreen "/games/rom/ps3/game.title/PS3_GAME"
Icon=/usr/share/icons/game.title/icon1.ico
StartupNotify=true
Terminal=false
Type=Application
Categories=Game;

View file

@ -1,7 +0,0 @@
safe_title=$(python3 -c "print(\"$name\".replace(\" \", \".\").lower())")
mv -v "root/usr/share/applications/Game Title.desktop" "root/usr/share/applications/$name.desktop"
mkdir -p root/games/rom/ps3/$safe_title
mkdir -p root/usr/share/icons/$safe_title
sd "game.title" "$safe_title" "root/usr/share/applications/$name.desktop"
sd "game.title" "$safe_title" PKGBUILD
rm setup.sh