winlibs_recipes icon indicating copy to clipboard operation
winlibs_recipes copied to clipboard

The structure of `.winlib` file?

Open ghost opened this issue 1 year ago • 4 comments

I'm sorry but it's really a mess to me. I want to help but don't know where to start.

ghost avatar Apr 21 '24 16:04 ghost

The winlibs recipe file have the extension .winlib and are basically shell scripts that are run in MSYS2 shell.

The basic template for a recipe can be found here: https://github.com/brechtsanders/winlibs_recipes/blob/main/template.winlib

Lines starting with # are ignored (which is typical for shell scripts).

The lines at the top starting with export VARIABLE= are variables that are extracted by the various tools from https://github.com/brechtsanders/winlibs_tools

brechtsanders avatar Apr 25 '24 19:04 brechtsanders

I still need to document how to set up MSYS2 shell for use with the winlibs tools and how to actually build packages.

brechtsanders avatar Apr 25 '24 19:04 brechtsanders

Where are you storing patch files? It seems that you included the patches in the .winlib file, making everything a mess.

ghost avatar Apr 26 '24 19:04 ghost

The .winlib recipes are all-in-one, there are no external patch files (which I think would be a mess).

brechtsanders avatar Apr 27 '24 11:04 brechtsanders