gamepkg/README.md

38 lines
1.5 KiB
Markdown
Raw Normal View History

2025-03-05 19:53:00 +01:00
# GamePKG
**Save PG Games as Arch Linux Packages.**
GamePKG allows you to package any game, including ROMs, as an Arch Linux package (`.pkg.tar.zst`). This enables easy installation, removal, and system-wide management of games with `pacman`.
## Features
- **System Integration**: Automatically sets up a desktop menu entry with game icons.
- **Extras Included**: Icons, banners, and additional metadata.
- **Wine Support**: Handles necessary Wine dependencies and launch scripts for Windows games.
- **Effortless Management**: Install and remove games just like any other package.
## Installation & Removal
With GamePKG, games can be distributed via [`pacco`](https://git.hydrar.de/jmarya/pacco), making installations seamless:
```sh
pacman -S games/elden.ring # Install a game
pacman -R games/elden.ring # Remove a game
```
## Package Format
Each game package should contain:
- **Game Icons** → `/usr/share/icons/`
- **Menu Entry** → `/usr/share/applications/`
- **Game Files** → `/games`
- **README** → Game-specific information
The menu entry should allow launching the game with a single click, requiring no additional setup. The package should declare any necessary dependencies.
Game Icons and Metadata can be sourced from SteamGridDB.
### Naming Convention
Game names should be formatted by replacing spaces with dots (e.g., `Game Title` -> `game.title`).
## Building a Game Package
See the `examples/` directory for a minimal build template to package games.
- [Windows Games](./examples/wine/)