# Maintainer: Antoni Aloy pkgname=xdg-desktop-portal-lxqt pkgver=0.4.0 pkgrel=0 pkgdesc="LXQT xdg desktop portal" url="https://github.com/lxqt/xdg-desktop-portal-lxqt" arch="all !armhf" # kwindowsystem license="LGPL-2.1-or-later" depends=" xdg-desktop-portal " makedepends=" cmake kwindowsystem-dev libfm-qt-dev qt5-qtbase-dev samurai xdg-desktop-portal-dev " source="https://github.com/lxqt/xdg-desktop-portal-lxqt/releases/download/$pkgver/xdg-desktop-portal-lxqt-$pkgver.tar.xz" options="!check" # no tests 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=None \ -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 } sha512sums=" 9295da6dc9370e01a48729848d9d19c9afea980335fb1cefeb91abf34b12d53579d876ccc952e2ef1440e10f0937b9c4a02d2c8473c9cad812da0388bfcacbe1 xdg-desktop-portal-lxqt-0.4.0.tar.xz "