# Maintainer: Antoni Aloy pkgname=lximage-qt pkgver=1.3.0 pkgrel=0 pkgdesc="The image viewer and screenshot tool for LXQt" url="https://github.com/lxqt/lximage-qt" arch="all !armhf !s390x" # armhf blocked by liblxqt, s390x blocked by libfm-qt license="LGPL-2.0-or-later" makedepends=" cmake samurai lxqt-build-tools liblxqt-dev qt5-qttools-dev libfm-qt-dev libexif-dev menu-cache-dev " options="!check" # No testsuite subpackages="$pkgname-lang" source="https://github.com/lxqt/lximage-qt/releases/download/$pkgver/lximage-qt-$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/$pkgname/translations } sha512sums=" c3fc8e24f78a9cd65736ba1af07b7fd5ba241eab233a595f7b05982d64a0a7a88d81c60eafea632779faa44f76cdb3bb501d2dc3b3758e3f6256fe2da10c37ac lximage-qt-1.3.0.tar.xz "