diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..79207f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,13 @@ +pkgname=game.title +pkgver=1.0 +pkgrel=1 +pkgdesc="" +arch=('x86_64') +optdepends=('citra') +makedepends=('rsync') +source=() +sha256sums=() + +package() { + rsync -vzrp ../root/ "$pkgdir/" +} diff --git a/bootstrap.toml b/bootstrap.toml index 2a171c1..7b04bbc 100644 --- a/bootstrap.toml +++ b/bootstrap.toml @@ -1,7 +1,7 @@ [ask] -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 } +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?" } [[actions.replace]] from = "" @@ -19,9 +19,6 @@ 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"} diff --git a/root/usr/share/applications/Game Title.desktop b/root/usr/share/applications/Game Title.desktop new file mode 100644 index 0000000..10d2aa1 --- /dev/null +++ b/root/usr/share/applications/Game Title.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name= +Comment= +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; diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..8644280 --- /dev/null +++ b/setup.sh @@ -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/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