pkgname=qt6-qtdeclarative pkgver=6.7.0 pkgrel=1 pkgdesc="Classes for QML and JavaScript languages" arch=('x86_64') url="https://www.qt.io" license=('GPL3' 'LGPL3' 'FDL' 'custom') groups=('qt6') depends=('gcc-libs' 'glibc' 'qt6-qtbase') makedepends=('cmake' 'ninja' 'python' 'qt6-qtlanguageserver' 'qt6-qtshadertools') source=(https://download.qt.io/archive/qt/${pkgver%.*}/${pkgver}/submodules/${pkgname#*-}-everywhere-src-${pkgver}.tar.xz) sha256sums=(5a0c39579a74d7cca581162c866ed0887287d4f8d5abff7ab9492d4a58fa9e2c) build() { cd ${pkgname#*-}-everywhere-src-${pkgver} export CXXFLAGS+=" -ffat-lto-objects" export PATH=${PWD}:$PATH cmake -B flarebird-build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DINSTALL_LIBDIR=lib64 \ -DINSTALL_PUBLICBINDIR=usr/bin \ -DCMAKE_MESSAGE_LOG_LEVEL=STATUS cmake --build flarebird-build } package() { cd ${pkgname#*-}-everywhere-src-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build cd ${pkgdir} mkdir usr/bin while read _line; do ln -s $_line done < ${srcdir}/${pkgname#*-}-everywhere-src-${pkgver}/build/user_facing_tool_links.txt }