✨ gba
This commit is contained in:
parent
5f80622d6b
commit
6547252485
3 changed files with 29 additions and 0 deletions
13
PKGBUILD
Normal file
13
PKGBUILD
Normal file
|
@ -0,0 +1,13 @@
|
|||
pkgname=game.title
|
||||
pkgver=1.0
|
||||
pkgrel=1
|
||||
pkgdesc="<GAME_DESC>"
|
||||
arch=('x86_64')
|
||||
optdepends=('mgba-qt')
|
||||
makedepends=('rsync')
|
||||
source=()
|
||||
sha256sums=()
|
||||
|
||||
package() {
|
||||
rsync -vzrp ../root/ "$pkgdir/"
|
||||
}
|
9
root/usr/share/applications/Game Title.desktop
Normal file
9
root/usr/share/applications/Game Title.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=<GAME_TITLE>
|
||||
Comment=<GAME_DESC>
|
||||
Exec=bash -c "mkdir -p $HOME/Games/gba;ln -s /games/rom/gba/game.title.gba $HOME/Games/gba/game.title.gba;mgba-qt -f $HOME/Games/gba/game.title.gba"
|
||||
Icon=/usr/share/icons/game.title/icon1.ico
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;
|
7
setup.sh
Normal file
7
setup.sh
Normal 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/gba
|
||||
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