makedepends(...) in PKGBUILD ignored when building Arch package
How to reproduce
docker run -it --rm archlinux:latest
pacman -Syu
pacman -S git python python-pip
pip install -U apkg
git clone https://gitlab.nic.cz/knot/c-dns.git
cd c-dns
git checkout 63237f3a3ef7d22a49098b06ab0b279b871d832f
apkg build -b
Error output
[root@2045558e8b78 c-dns]# apkg -L verbose build -b
V cli.cli(): apkg version: 0.3.1
V cli.cli(): log level: VERBOSE (15)
I build.build(): building packages
V project.load_config(): loading project config: distro/config/apkg.toml
V project.update_attrs(): project name from config: c-dns
I build.build(): target distro: arch
V cache.enabled(): git VCS detected -> cache ENABLED
I build_dep.build_dep(): installing build deps
I build_dep.build_dep(): target distro: arch
I build_dep.build_dep(): build deps from template: distro/pkg/arch
V pkgstyle.call_pkgstyle_fun(): calling apkg.pkgstyles.arch function: get_build_deps_from_template
I build_dep.build_dep(): installing 0 build deps...
V pkgstyle.call_pkgstyle_fun(): calling apkg.pkgstyles.arch function: install_build_deps
$ run.run(): pacman -S --noconfirm
error: no targets specified (use -h for help)
E run.log_cmd_fail(): command failed: pacman -S --noconfirm
What is happening
It seems that apkg doesn't install packages from makedepends(...) in PKGBUILD. When I change the makedepends(...) line in PKGBUILD to depends(...) dependencies are installed and the package is built successfully.