# Maintainer: Antoni Aloy pkgname=liblxqt pkgver=1.3.0 pkgrel=1 pkgdesc="Common base library for LXQt components" url="https://github.com/lxqt/liblxqt" # armhf blocked by extra-cmake-modules -> kwindowsystem arch="all !armhf" license="LGPL-2.0-or-later" makedepends=" cmake samurai lxqt-build-tools qt5-qttools-dev libqtxdg-dev kwindowsystem-dev qt5-qtx11extras-dev libxscrnsaver-dev polkit-qt-1-dev " subpackages="$pkgname-dev $pkgname-lang" source="https://github.com/lxqt/liblxqt/releases/download/$pkgver/liblxqt-$pkgver.tar.xz" options="!check" # No testsuite 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 \ -DBUILD_BACKLIGHT_LINUX_BACKEND=True \ $CMAKE_CROSSOPTS cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } lang() { install_if="lang $pkgname=$pkgver-r$pkgrel" amove usr/share/lxqt/translations/$pkgname } sha512sums=" 71595c98e5236467c96ea903a7326c1ddf04329b34ecce48cda9f55970d4a3b608dd8297a3fc484275fc25d11efa2740837239e4cbf436954d87ee1a0857ba21 liblxqt-1.3.0.tar.xz "