# Maintainer: Antoni Aloy pkgname=lxqt-session pkgver=1.3.0 pkgrel=0 pkgdesc="The LXQt session manager" url="https://github.com/lxqt/lxqt-session" arch="all !armhf" # liblxqt-dev license="LGPL-2.0-or-later" depends="xdg-user-dirs" makedepends=" cmake eudev-dev kwindowsystem-dev liblxqt-dev lxqt-build-tools procps-ng-dev qt5-qttools-dev qtxdg-tools-dev samurai " subpackages="$pkgname-doc $pkgname-lang" options="!check" # No testsuite source="https://github.com/lxqt/lxqt-session/releases/download/$pkgver/lxqt-session-$pkgver.tar.xz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi CXXFLAGS="$CXXFLAGS -DNDEBUG -flto=auto" \ 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=" 4ad358ad8a01fe6df697cb4dc19abee7ed9b37dce13022e2fc1b309a5adbb942c69fc4de401fbc16e51394d38482a98bf2f5ebcc0a64194e03bd714691ad96db lxqt-session-1.3.0.tar.xz "