Re: [opensuse-factory] New Package "Godot"

On 5/2/19 12:12 PM, Rémi Verschelde wrote:
On Thu, 2 May 2019 at 18:05, Max Mitschke <maxmitschke@fastmail.com> wrote:
On May 2, 2019, at 07:47, Neal Gompa <ngompa13@gmail.com> wrote:
On Thu, May 2, 2019 at 7:44 AM Martin Liška <mliska@suse.cz> wrote:
I'm sending Max's message as it hasn't been approved yet:
``` Howdy,
I plan to submit the following packages to Factory:
* godot * godot-rpm-macros
Godot is an open source game engine that provides an environment that is easy to use so users can make games. The Github repo for the engine is very active. Major versions of the engine tend to be released annually; minor versions release in a timely manner. Overall, the Godot engine receives a bunch of updates every day.
The godot-rpm-macros package will only be used for packaging Godot games. I wanted to make the packaging process as easy as possible.
For something like godot-rpm-macros, would you please consider submitting those upstream, so that other RPM distributions packaging godot could benefit from them?
We can definitely do that. I will work on getting it submitted as soon as I have free time.
Hi, Godot upstream maintainer here, and Mageia + Fedora packager,
I'm curious what RPM macros would be worth adding for packaging Godot games.
I guess there can be *some* macro for generating the .pck with a headless binary, but you still need to give the preset name manually, as it can differ from the default value "Linux/X11" if the developer chooses so. And this default value will change in the future too once the "x11" platform is better abstracted into a Freedesktop/Linux/*BSD platform with X11 and Wayland drivers.
And then a macro to install the generated .pck in /usr/share/{,games/}pkgname with a wrapper script in /usr/{bin,games} to run the Godot runner with the path to the .pck.
I guess that makes sense, though IMO the overhead of having to get new RPM macros defined distro wide might outweigh the gains, but why not :)
Please PR the file in `misc/dist/linux/` and we can discuss further on the PR :)
Best, Rémi
Hey Rémi, I have submitted a PR to the Godot repo. The two macros that exist right now are: %godot_prep and %godot_export. The prep macro will prepare the export_presets.cfg and the export macro will create the PCK file. With the export macro, a packager has the ability to specify which preset he or she wants to use. They just have to pass a "-e <preset_name>" flag. Example specfile: https://build.opensuse.org/package/view_file/home:demonpig:Games:Tools/tic-t... -- Max Mitschke
participants (1)
-
Max Mitschke