From e784de310afb78bc17c4e609ea57ab6cabb2ed9b Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 6 Apr 2025 01:25:35 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20wine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PKGBUILD | 13 +++++++++++++ root/usr/share/applications/Game Title.desktop | 9 +++++++++ setup.sh | 7 +++++++ 3 files changed, 29 insertions(+) create mode 100644 PKGBUILD create mode 100644 root/usr/share/applications/Game Title.desktop create mode 100644 setup.sh diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5a25ab4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,13 @@ +pkgname=game.title +pkgver=1.0 +pkgrel=1 +pkgdesc="" +arch=('x86_64') +depends=('wine' 'umu-launcher') +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..bf16d5e --- /dev/null +++ b/root/usr/share/applications/Game Title.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name= +Comment= +Exec=env WINEPREFIX="$HOME/Games/umu/game.title" STEAM_COMPAT_LIBRARY_PATHS="/games" bash -c "cd /games/game.title && umu-run /games/game.title/_Redist/vc_redist.x64.exe /Install /Quiet && umu-run /games/game.title/_Redist/vc_redist.x86.exe /Install /Quiet && umu-run /games/game.title/game.exe" +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..c7a665c --- /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/$safe_title +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 \ No newline at end of file