Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
a813a6194f |
4 changed files with 31 additions and 6 deletions
12
PKGBUILD
Normal file
12
PKGBUILD
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
pkgname=game.title
|
||||||
|
pkgver=1.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="<GAME_DESC>"
|
||||||
|
arch=('x86_64')
|
||||||
|
depends=('rpcs3')
|
||||||
|
source=()
|
||||||
|
sha256sums=()
|
||||||
|
|
||||||
|
package() {
|
||||||
|
rsync -vzrp ../root/ "$pkgdir/"
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
[ask]
|
[ask]
|
||||||
platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch", "n64"], order = 1 }
|
platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch"] }
|
||||||
name = { kind = "text", prompt = "Game Name?", order = 2 }
|
name = { kind = "text", prompt = "Game Name?" }
|
||||||
desc = { kind = "text", prompt = "Game Description?", order = 3 }
|
desc = { kind = "text", prompt = "Game Description?" }
|
||||||
|
|
||||||
[[actions.replace]]
|
[[actions.replace]]
|
||||||
from = "<GAME_TITLE>"
|
from = "<GAME_TITLE>"
|
||||||
|
@ -19,9 +19,6 @@ branch = "wine"
|
||||||
when = { var = "platform", eq = "wiiu"}
|
when = { var = "platform", eq = "wiiu"}
|
||||||
branch = "wiiu"
|
branch = "wiiu"
|
||||||
|
|
||||||
[[actions.branch]]
|
|
||||||
when = { var = "platform", eq = "n64"}
|
|
||||||
branch = "n64"
|
|
||||||
|
|
||||||
[[actions.branch]]
|
[[actions.branch]]
|
||||||
when = { var = "platform", eq = "3ds"}
|
when = { var = "platform", eq = "3ds"}
|
||||||
|
|
9
root/usr/share/applications/Game Title.desktop
Normal file
9
root/usr/share/applications/Game Title.desktop
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=<GAME_TITLE>
|
||||||
|
Comment=<GAME_DESC>
|
||||||
|
Exec=pcsx2 "/games/rom/ps2/game.title.iso"
|
||||||
|
Icon=/usr/share/icons/game.title/icon1.ico
|
||||||
|
StartupNotify=true
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Game;
|
7
setup.sh
Normal file
7
setup.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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/ps2/$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
|
Loading…
Add table
Reference in a new issue