Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
76bf17e1ab | |||
ca0f42c326 | |||
5f80622d6b | |||
e00cf90def |
4 changed files with 35 additions and 32 deletions
13
PKGBUILD
13
PKGBUILD
|
@ -1,13 +0,0 @@
|
||||||
pkgname=game.title
|
|
||||||
pkgver=1.0
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="<GAME_DESC>"
|
|
||||||
arch=('x86_64')
|
|
||||||
depends=('wine' 'umu-launcher')
|
|
||||||
makedepends=('rsync')
|
|
||||||
source=()
|
|
||||||
sha256sums=()
|
|
||||||
|
|
||||||
package() {
|
|
||||||
rsync -vzrp ../root/ "$pkgdir/"
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
[ask]
|
[ask]
|
||||||
platform = { kind = "selection", prompt = "Game Platform", options = ["wine"] }
|
platform = { kind = "selection", prompt = "Game Platform", options = ["wine", "wiiu", "3ds", "gamecube", "gba", "ps2", "ps3", "switch", "n64"], order = 1 }
|
||||||
name = { kind = "text", prompt = "Game Name?" }
|
name = { kind = "text", prompt = "Game Name?", order = 2 }
|
||||||
desc = { kind = "text", prompt = "Game Description?" }
|
desc = { kind = "text", prompt = "Game Description?", order = 3 }
|
||||||
|
|
||||||
[[actions.replace]]
|
[[actions.replace]]
|
||||||
from = "<GAME_TITLE>"
|
from = "<GAME_TITLE>"
|
||||||
|
@ -15,6 +15,38 @@ to_var = "desc"
|
||||||
when = { var = "platform", eq = "wine"}
|
when = { var = "platform", eq = "wine"}
|
||||||
branch = "wine"
|
branch = "wine"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "wiiu"}
|
||||||
|
branch = "wiiu"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "n64"}
|
||||||
|
branch = "n64"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "3ds"}
|
||||||
|
branch = "3ds"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "gamecube"}
|
||||||
|
branch = "gamecube"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "gba"}
|
||||||
|
branch = "gba"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "ps2"}
|
||||||
|
branch = "ps2"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "ps3"}
|
||||||
|
branch = "ps3"
|
||||||
|
|
||||||
|
[[actions.branch]]
|
||||||
|
when = { var = "platform", eq = "switch"}
|
||||||
|
branch = "switch"
|
||||||
|
|
||||||
[[actions.script]]
|
[[actions.script]]
|
||||||
script = "setup.sh"
|
script = "setup.sh"
|
||||||
expose = ["name", "desc"]
|
expose = ["name", "desc"]
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Name=<GAME_TITLE>
|
|
||||||
Comment=<GAME_DESC>
|
|
||||||
Exec=env WINEPREFIX="$HOME/Games/umu/game.title" STEAM_COMPAT_LIBRARY_PATHS="/games" bash -c "cd /games/game.title && umu-run /games/game.title/_Redist/vc_redist.x64.exe /Install /Quiet && umu-run /games/game.title/_Redist/vc_redist.x86.exe /Install /Quiet && umu-run /games/game.title/game.exe"
|
|
||||||
Icon=/usr/share/icons/game.title/icon1.ico
|
|
||||||
StartupNotify=true
|
|
||||||
Terminal=false
|
|
||||||
Type=Application
|
|
||||||
Categories=Game;
|
|
7
setup.sh
7
setup.sh
|
@ -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/$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