require 'buildsystems/qmake'

class Qt5_declarative < Qmake
  description 'Provides QML and Quick declaratives.'
  homepage 'https://www.qt.io/'
  kde_5_15_githash = 'e2b38659cb79104f157e1d0099c01e545d04d0db'
  version "kde-5.15.16-#{kde_5_15_githash[0, 7]}"
  license 'FDL, GPL-2, GPL-3, GPL-3-with-qt-exception and LGPL-3'
  compatibility 'aarch64 armv7l x86_64'
  source_url 'https://invent.kde.org/qt/qt/qtdeclarative.git'
  git_hashtag kde_5_15_githash
  binary_compression 'tar.zst'

  binary_sha256({
    aarch64: '763da644cf7dd6c5642ba31dfc93cff514237ed2d60814b5519be4d724819c8c',
     armv7l: '763da644cf7dd6c5642ba31dfc93cff514237ed2d60814b5519be4d724819c8c',
     x86_64: 'c7fff97f368abd24f9d779f8be90a3710c03493ea6051c96a79f989e7f290e01'
  })

  depends_on 'gcc_lib' # R
  depends_on 'glibc' # R
  depends_on 'libglvnd' # R
  depends_on 'qt5_base' # R
  depends_on 'vulkan_headers' => :build
end
