# Maintainer: Antoni Aloy pkgname=lxqt-policykit pkgver=1.3.0 pkgrel=0 pkgdesc="LXQt PolicyKit agent" url="https://github.com/lxqt/lxqt-policykit" # armhf blocked by liblxqt-dev arch="all !armhf" license="LGPL-2.0-or-later" makedepends=" cmake samurai lxqt-build-tools liblxqt-dev qt5-qttools-dev polkit-qt-1-dev kwindowsystem-dev " subpackages="$pkgname-doc $pkgname-lang" source="https://github.com/lxqt/lxqt-policykit/releases/download/$pkgver/lxqt-policykit-$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 \ $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-agent } sha512sums=" 4a05064f988bd2eb35c4b889fbb098a7617eb7a702deba35338f0f3dfc6e5946505b35f3c022a33bad0e268c710bf7f3c0cdf84160054e118298ee390db8af45 lxqt-policykit-1.3.0.tar.xz "