makedepends=(qtbase qtdeclarative xorg-libxcomposite wayland vulkan-headers)

description="A cross-platform application and UI framework, QtWayland files"
url="http://qt-project.org/"

packager="Great-OS Team"
maintainer="Great-OS Team"

set=(qt5-dev)
name=qtwayland
version=5.15.18

_name="${name}-everywhere-opensource-src"
_name2="${name}-everywhere-src"

source=(https://download.qt.io/archive/qt/${version:0:4}/$version/submodules/${_name}-${version}.tar.xz)

build() {
  cd ${_name2}-${version}

  qmake

  make
  make INSTALL_ROOT=$PKG install

# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  find "$PKG/usr/lib" -type f -name '*.prl' \
       -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}
