Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
76bf17e1ab | |||
ca0f42c326 |
4 changed files with 6 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')
|
|
||||||
optdepends=('citra')
|
|
||||||
makedepends=('rsync')
|
|
||||||
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"] }
|
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>"
|
||||||
|
@ -19,6 +19,9 @@ 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"}
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Name=<GAME_TITLE>
|
|
||||||
Comment=<GAME_DESC>
|
|
||||||
Exec=citra-qt "/games/rom/3ds/game.title.3ds"
|
|
||||||
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/rom/3ds
|
|
||||||
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