diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3135e17 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,13 @@ +pkgname=game.title +pkgver=1.0 +pkgrel=1 +pkgdesc="" +arch=('any') +optdepends=('ryujinx' 'yuzu') +makedepends=('rsync') +source=() +sha256sums=() + +package() { + rsync -vzrp ../root/ "$pkgdir/" +} diff --git a/root/usr/share/applications/Game Title.desktop b/root/usr/share/applications/Game Title.desktop new file mode 100644 index 0000000..29f7ca7 --- /dev/null +++ b/root/usr/share/applications/Game Title.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name= +Comment= +Exec=ryujinx "/games/rom/switch/game.title.nsp" +Icon=/usr/share/icons/game.title/icon1.png +StartupNotify=true +Terminal=false +Type=Application +Categories=Game; diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..eaf7669 --- /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/switch +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