# Maintainer: Antoni Aloy pkgname=lxqt-config pkgver=1.3.0 pkgrel=0 pkgdesc="Tools to configure LXQt and the underlying operating system" url="https://github.com/lxqt/lxqt-config" arch="all !armhf" # armhf blocked by libkscreen, liblxqt and kwindowsystem license="LGPL-2.0-or-later" makedepends=" cmake eudev-dev kwindowsystem-dev libkscreen-dev liblxqt-dev libqtxdg-dev libxcursor-dev libxi-dev lxqt-build-tools qt5-qtbase-dev qt5-qttools-dev qt5-qtx11extras-dev samurai xf86-input-libinput-dev " subpackages="$pkgname-doc $pkgname-lang" options="!check" # No testsuite source="https://github.com/lxqt/lxqt-config/releases/download/$pkgver/lxqt-config-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_CXX_STANDARD=17 \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --build build --target install } lang() { install_if="lang $pkgname=$pkgver-r$pkgrel" amove usr/share/lxqt/translations/$pkgname } sha512sums=" 30610d1c90d897eb54ce5ee75a39721a7818b0164bc97dece5b74aec2032c3b0027316995d83c077352e93fd2f7ab319d1801ed5ce356b857805e855db71cd75 lxqt-config-1.3.0.tar.xz "