Compare commits

...
Sign in to create a new pull request.

1 commit
main ... 3ds

Author SHA1 Message Date
3d0c87d59c
3ds 2025-04-06 02:05:07 +02:00
3 changed files with 29 additions and 0 deletions

13
PKGBUILD Normal file
View file

@ -0,0 +1,13 @@
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/"
}

View file

@ -0,0 +1,9 @@
[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 Normal file
View 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/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