# Maintainer: Norbert Pfeiler <norbert.pfeiler+aur ät gmail.com>

_realname=cppreference-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=20250209
pkgrel=1
pkgdesc="A complete reference for the features in the C++ Standard Library, for qt help (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="https://en.cppreference.com/"
msys2_repository_url="https://github.com/PeterFeicht/cppreference-doc"
license=('spdx:CC-BY-3.0')
source=("https://github.com/PeterFeicht/cppreference-doc/releases/download/v${pkgver}/qch-book-${pkgver}.tar.xz")
sha256sums=('25f48c46b2cdd592468c7b0ad83ca18001fcb77f73a1d8402ba14fa64c1cc8b3')

package() {
  local _qch=cppreference-doc-en-cpp.qch
  install -Dm644 "${srcdir}/${_qch}" "${pkgdir}${MINGW_PREFIX}/share/qt6/doc/${_qch}"
}
