gamecube

This commit is contained in:
JMARyA 2025-04-06 02:06:02 +02:00
parent 5f80622d6b
commit 91bae6eb25
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 28 additions and 0 deletions

12
PKGBUILD Normal file
View file

@ -0,0 +1,12 @@
pkgname=game.title
pkgver=1.0
pkgrel=1
pkgdesc="<GAME_DESC>"
arch=('x86_64')
depends=('dolphin-emu')
source=()
sha256sums=()
package() {
rsync -vzrp ../root/ "$pkgdir/"
}

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=<GAME_TITLE>
Comment=<GAME_DESC>
Exec=env QT_QPA_PLATFORM=xcb dolphin-emu -b -e "/games/rom/gamecube/game.title.iso"
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/gamecube
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