You'll need to download the PKGBUILD and the other files associated with it. You can see a list of those files here:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-gedit
The easiest way to download these files is to run these commands in MSYS2:
pacman -S git
git clone https://github.com/Alexpux/MINGW-packages.git
Run cd MINGW-packages/mingw-w64-gedit
to get into the right directory, and then run the makepkg-mingw -sL
command specified by the blog post.
This isn't guaranteed to work the first time; you might be missing certain packages needed to build the software, something might have changed since the last time an MSYS2 developer worked on that package, or something else might be messed up in your environment.
You can see more example PKGBUILDs and find more information about making MSYS2 packages here:
By the way, I don't really like the tutorial you are following. You don't actually need PKGBUILD
files or makepkg
if you're just trying to build an application that uses GTK+. I think probably all you need to do is install the right MSYS2 packages (the right GTK and the right GCC), download the source file for a simple GTK application, and then invoke gcc
with the right arguments to compile that source file. Using extra tools on top of gcc
just obscures what is going on and probably makes it harder for beginners to understand. Once you understand how gcc
works, you can move on to using build tools like make
and cmake
to run gcc
for you and provide features like incremental compilation. Once you understand those build tools, if you want to make an MSYS2 package that can be installed onto an MSYS2 system using pacman
, then you would look into makepkg
. But starting off with makepkg
right away in a tutorial meant for beginners seems like a bad approach.