I'm trying to add a custom package to a debug build of LibreELEC.
My (WiP) packages/debug/heaptrack/package.mk:
PKG_NAME="heaptrack"
PKG_VERSION="1.5"
#PKG_REV="0"
PKG_SHA256="2f87cd1b7da7ef387ba042719119caec4abafa71313e956c19e214e7983d9090"
PKG_LICENSE="GPL2"
PKG_SITE="https://apps.kde.org/heaptrack/"
# https://invent.kde.org/sdk/heaptrack/-/archive/1.5/heaptrack-1.5.tar.bz2
PGK_URL="https://invent.kde.org/sdk/${PKG_NAME}/-/archive/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
#PKG_DEPENDS_HOST="toolchain:host"
PKG_DEPENDS_TARGET="toolchain binutils boost elfutils libunwind zlib zstd"
PKG_SHORTDESC="a heap memory profiler"
PKG_LONGDESC="Heaptrack traces all memory allocations and annotates these events with stack traces."
Display More
(And I added it to packages/virtual/debug with a new HEAPTRACK switch.)
When the build gets to this package, it will try to detect the required toolchain (which should be cmake / cmake-make); but the build.LibreELEC-Generic.x86_64-13.0-devel/build/heaptrack-1.5/ directory is empty save for two stamp files.
There is no trace of the heaptrack-1.5.tar.bz2 source file in sources/ (or anywhere), nor any indication in any log that I can find where it would be downloaded.
I've verified the PKG_URL by running scripts/build edited to #!/bin/bash -x and it resolves as expected, and manually wget'ing that URL yields an archive with the source files.
What am I missing / what could be going wrong here?