# Maintainer: Bart Ribbers pkgname=qt6-qtlanguageserver pkgver=6.5.2 pkgrel=0 pkgdesc="Qt implementation of the Language Server Protocol" url="https://qt.io/" arch="all" license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0" depends_dev=" qt6-qtbase-dev " makedepends=" $depends_dev cmake samurai " subpackages="$pkgname-dev" options="!check" # No tests builddir="$srcdir/qtlanguageserver-everywhere-src-${pkgver/_/-}" case $pkgver in *_alpha*|*_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qtlanguageserver-everywhere-src-${pkgver/_/-}.tar.xz" build() { export CFLAGS="$CFLAGS -flto=auto" export CXXFLAGS="$CXXFLAGS -flto=auto" cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" aa285b846eb4ce2527b8fb396af5b3c8656913b2f0fd22ca605454285883752ef0444d50a12db1514d1668a3a6e1b145e7a75e41db7442d8c1e70cce7f06528a qtlanguageserver-everywhere-src-6.5.2.tar.xz "