Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| create_pacman_package [2021/12/30 00:06] – path consistency, image consistency atari | create_pacman_package [2023/02/24 16:34] (current) – [What is pacman?] nit: Spelling maximumentropy | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| In Batocera **v27** and higher, you can utilize [[https:// | In Batocera **v27** and higher, you can utilize [[https:// | ||
| - | You don't need development skills to create a package, just a bit of patience. If you've copied files too and from directories before, you already have the skill-set required for this. | + | You don't need development skills to create a package, just a bit of patience. If you've copied files to and from directories before, you already have the skill-set required for this. |
| ===== Create your own package ===== | ===== Create your own package ===== | ||
| Line 67: | Line 67: | ||
| {{: | {{: | ||
| - | |||
| - | This file must be named '' | ||
| {{: | {{: | ||
| - | Open the file for editing and paste the following in (or just download the file and place it there): | + | This file must be named '' |
| <file - .PKGINFO> | <file - .PKGINFO> | ||
| - | pkgname = nes-alter-ego | + | pkgname = nes-alter-ego |
| pkgver = 1.0.0-1 | pkgver = 1.0.0-1 | ||
| - | pkgdesc = NES freeware puzzle game by Shiru, Kulor, Denis Grachev | + | pkgdesc = Alter Ego - A freeware puzzle game by Shiru, Kulor, Denis Grachev. |
| arch = any | arch = any | ||
| group = sys-nes | group = sys-nes | ||
| - | packager = your_name | + | packager = your_name |
| url = https:// | url = https:// | ||
| </ | </ | ||
| - | Replace the lines as appropriate! Here are the **required** lines: | + | Insert the lines above into the '' |
| * **pkgname: | * **pkgname: | ||
| * **pkgver:** The version of the package. If this number is higher than the one currently installed, Batocera will offer the user to update the package in the store. The only acceptable format for this is '' | * **pkgver:** The version of the package. If this number is higher than the one currently installed, Batocera will offer the user to update the package in the store. The only acceptable format for this is '' | ||
| - | * **pkgdesc: | + | * **pkgdesc: |
| - | * **arch:** What platforms should this package be available to? Most packages are fine to leave this as " | + | * **arch:** What platforms should this package be available to? Most packages are fine to leave this as " |
| * **group:** What category should the store show this under? If you are creating a package for a specific [[: | * **group:** What category should the store show this under? If you are creating a package for a specific [[: | ||
| The remaining lines are optional, but can provide extra information to users choosing to install them: | The remaining lines are optional, but can provide extra information to users choosing to install them: | ||
| * **packager: | * **packager: | ||
| - | * **url:** URL for the user to go to if they desire more information. | + | * **url:** URL for the user to go to if they desire more information. For freeware, generally links to the page the download can be made manually. |
| <WRAP center round important> | <WRAP center round important> | ||
| Line 128: | Line 126: | ||
| gamelist = nes | gamelist = nes | ||
| < | < | ||
| - | | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | <WRAP center round important> | ||
| + | The '' | ||
| + | </ | ||
| === exec === | === exec === | ||
| Line 148: | Line 150: | ||
| <WRAP center round info> | <WRAP center round info> | ||
| Only interpreters that takes a '' | Only interpreters that takes a '' | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important> | ||
| + | This is called via the Python '' | ||
| + | * Pipes ('' | ||
| + | * Anything that could result in '' | ||
| + | * Any interactivity that reads from '' | ||
| + | * If a command continually runs in the background then the installation will never complete. | ||
| </ | </ | ||
| Line 187: | Line 197: | ||
| | | ||
| | | ||
| - | | + | |
| | | ||
| </ | </ | ||
| Line 193: | Line 203: | ||
| ==== Create the package ==== | ==== Create the package ==== | ||
| - | Batocera uses a custom tool to create its packages: | + | Batocera uses a custom tool to create its packages: |
| To use it: | To use it: | ||
| Line 208: | Line 218: | ||
| '' | '' | ||
| + | |||
| + | <WRAP center round info> | ||
| + | '' | ||
| + | </ | ||
| ==== Installing your package ==== | ==== Installing your package ==== | ||
| - | If you'd like to test installing your package, you can do so with the following command: | + | If you'd like to test [[: |
| < | < | ||
| Line 222: | Line 236: | ||
| pacman -U / | pacman -U / | ||
| </ | </ | ||
| + | |||
| + | ==== Updating your package ==== | ||
| + | |||
| + | If you kept the original package files, it is simple: make your adjustments and increment the version number however you see fit. | ||
| + | |||
| + | <file - .PKGINFO> | ||
| + | pkgname = nes-alter-ego | ||
| + | pkgver = 1.0.1-1 | ||
| + | pkgdesc = Alter Ego - A freeware puzzle game by Shiru, Kulor, Denis Grachev. | ||
| + | arch = any | ||
| + | group = sys-nes | ||
| + | packager = your_name | ||
| + | url = https:// | ||
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP center round info> | ||
| + | The '' | ||
| + | </ | ||
| + | |||
| + | You may notice that in your '' | ||
| + | |||
| + | When ready, follow the instructions from the [[# | ||
| + | |||
| + | <WRAP center round important> | ||
| + | When updating packages, you **must** increment the version number, even for minor changes. Otherwise, it may cause corruption if the user has the same numbered package installed upon attempting to update to a newer version. | ||
| + | </ | ||
| + | |||
| + | ==== Remove your package ==== | ||
| + | |||
| + | When you're done testing or just want a clean slate to work with. Do note however, a ZST file is not actually required to remove a package. Simply enter the name ('' | ||
| + | |||
| + | < | ||
| + | pacman -R < | ||
| + | </ | ||
| + | |||
| + | This is version independent. | ||
| + | |||
| + | For example: | ||
| + | |||
| + | < | ||
| + | pacman -R nes-alter-ego | ||
| + | </ | ||
| + | |||
| + | which would result in: | ||
| + | |||
| + | < | ||
| + | checking dependencies... | ||
| + | |||
| + | Packages (1) nes-alter-ego-1.0.0-1 | ||
| + | |||
| + | Total Removed Size: 1.33 MiB | ||
| + | |||
| + | :: Do you want to remove these packages? [Y/n] | ||
| + | </ | ||
| + | |||
| + | Press '' | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | To see a list of installed packages and their version numbers, run '' | ||
| + | </ | ||
| + | |||
| + | ===== Hosting your own repository ===== | ||
| + | |||
| + | It is possible to [[: | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
- create_pacman_package.1640822799.txt.gz
- Last modified: 4 years ago
- by atari