# Maintainer: Antoni Aloy pkgname=lxqt-archiver pkgver=0.8.0 pkgrel=0 pkgdesc="Simple and lightweight desktop-agnostic Qt file archiver" url="https://github.com/lxqt/lxqt-archiver" arch="all !armhf" license="LGPL-2.0-or-later" makedepends=" cmake samurai lxqt-build-tools qt5-qttools-dev qt5-qtx11extras-dev libfm-qt-dev json-glib-dev menu-cache-dev libexif-dev " options="!check" # No testsuite subpackages="$pkgname-lang" source="https://github.com/lxqt/lxqt-archiver/releases/download/$pkgver/lxqt-archiver-$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=" 70266581478e75505f708eccee4fd1680c1ff012dd4e99138d0c2d17fb8dfab24d9d5e5453d5d4a3f7a9b8437e8a980c3edf190f3e319400c46a655ba7db4898 lxqt-archiver-0.8.0.tar.xz "