msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 1.21k forks source link

Separate utility functions into single file. #20781

Open ikspress opened 4 months ago

ikspress commented 4 months ago

There are too many utility functions like apply_patch_with_msg revert_patch_with_msg and del_file_exists scattered in various PKGBUILDs, why not separate them into a single file (e.g. scripts/utils.sh) and use source command to load?

Biswa96 commented 4 months ago

Or, makepkg could apply the patches automatically by reading source array. I do not know if upstream ArchLinux would accept that proposal.