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

_realname=cmake-doc-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=3.19.3
pkgrel=1
pkgdesc="CMake documentation in Qt Help format"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
license=('CCPL:cc-by')
url='https://www.cmake.org/documentation/'
# rename to include version of each release
# (prevents accidentally using the file of an older version)
source=("CMake-${pkgver}.qch::https://www.cmake.org/cmake/help/v${pkgver%.*}/CMake.qch")
sha256sums=('b45508357c47acaa549677189da9723887847a3a7bc878587714cee76e3d4772')

package() {
  mkdir -p "${pkgdir}${MINGW_PREFIX}/share/qt5/doc"
  cp "${srcdir}/CMake-${pkgver}.qch" "${pkgdir}${MINGW_PREFIX}/share/qt5/doc"
}
