# Maintainer: Bart Ribbers pkgname=qt6-qthttpserver pkgver=6.5.2 pkgrel=0 pkgdesc="Qt6 HTTP Server" 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 qt6-qtwebsockets-dev " makedepends="$depends_dev cmake perl samurai " subpackages="$pkgname-dev" options="!check" # No tests builddir="$srcdir/qthttpserver-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/qthttpserver-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=" e7ee050cc5ed806db5156cda4953efcab3ccd64adaf91da57dd8c77a40a807ee5858f9c81e532163a3b9ced17909a3de728d93834e7a77ed9b26a40f49734387 qthttpserver-everywhere-src-6.5.2.tar.xz "