Thanks for your work on this! From a quick test it seems much faster than the previous implementation.
> * The source files should be located in `/usr/src/debug/${pkgbase}-${pkgver}`
That doesn't seem to be the case. The entire ${srcdir} is installed directly
under /usr/src/debug.
This can potentially cause conflicts, especially with out-of-tree cmake/meson
builds.
