# Maintainer: Antonio Rojas # Maintainer: Felix Yan # Contributor: Andrea Scarpino pkgname=qt6-wayland _qtver=6.5.2 pkgver=${_qtver/-/} pkgrel=2 arch=(x86_64) url='https://www.qt.io' license=(GPL3 LGPL3 FDL custom) pkgdesc='Provides APIs for Wayland' depends=(qt6-declarative libxcomposite) makedepends=(cmake ninja) groups=(qt6) _pkgfn=${pkgname/6-/}-everywhere-src-$_qtver source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz QTBUG-115757.patch) sha256sums=('3020be86fb7fd0abb8509906ca6583cadcaee168159abceaeb5b3e9d42563c9a' '9e2d6e01e3249ff1acd67d3ac3d2fb96ab5583efb4ca279fcbfdf3a99b6ea1cb') prepare() { patch -d $_pkgfn -p1 < QTBUG-115757.patch } build() { cmake -B build -S $_pkgfn -G Ninja \ -DCMAKE_MESSAGE_LOG_LEVEL=STATUS cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -d "$pkgdir"/usr/share/licenses ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname }