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

_realname=cppreference-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=20190607
pkgrel=1
pkgdesc="A complete reference for the features in the C++ Standard Library, for qt help (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://en.cppreference.com/"
license=('CCPL:cc-by-sa')
source=("http://upload.cppreference.com/mwiki/images/5/5a/qch_book_${pkgver}.tar.xz")
sha256sums=('4b357d49181104bddbe230440b03d9a392844aed33b4eb5e80e6e756cf04d444')

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