# Maintainer: Antoni Aloy pkgname=screengrab pkgver=2.6.0 pkgrel=0 pkgdesc="Crossplatform tool for fast making screenshots" url="https://github.com/lxqt/screengrab" arch="all !armhf" # blocked by kwindowsystem-dev license="GPL-2.0-or-later" makedepends=" cmake kwindowsystem-dev libqtxdg-dev lxqt-build-tools qt5-qtbase-dev qt5-qttools-dev samurai " subpackages="$pkgname-doc $pkgname-lang" source="https://github.com/lxqt/screengrab/releases/download/$pkgver/screengrab-$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 \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --build build --target install } lang() { install_if="lang $pkgname=$pkgver-r$pkgrel" amove usr/share/$pkgname/translations } sha512sums=" 622bd9fa4548dbbd2b965f2a38446d6b6002786ff2154f9efe86a4970ac464174d1d7e34b8fdc61761f935c97bf4ac8bb2e8ffd166b859cddd3183bd76380b88 screengrab-2.6.0.tar.xz "