The pkgconf package is a successor to pkg-config and contains a tool for passing the include path and/or library paths to build tools during the configure and make phases of package installations.
First, remove a test the causes the build to fail:
sed '/^test_api_util_exe/,/^test(.*test_api_util_exe)/d' -i meson.build
Now, work around a circular dependency on meson:
tar -xf ../meson-1.12.1.tar.gz
Prepare Pkgconf for compilation:
mkdir build cd build python3 ../meson-1.12.1/meson.py setup --prefix=/usr --buildtype=release ..
Compile the package:
ninja
To test the results, issue:
ninja test
Install the package:
ninja install
mv /usr/share/doc/pkgconf{,-3.0.8}
To maintain compatibility with the original Pkg-config create two symlinks:
ln -sv pkgconf /usr/bin/pkg-config ln -sv pkgconf.1 /usr/share/man/man1/pkg-config.1