# Maintainer: Antoni Aloy pkgname=pcmanfm-qt pkgver=1.3.0 pkgrel=0 pkgdesc="Qt port of pcmanfm" url="https://github.com/lxqt/pcmanfm-qt" arch="all !armhf" license="LGPL-2.0-or-later" depends="desktop-file-utils lxmenu-data" makedepends=" cmake libexif-dev libfm-qt-dev lxqt-build-tools menu-cache-dev qt5-qttools-dev samurai " subpackages="$pkgname-doc $pkgname-lang" source="https://github.com/lxqt/pcmanfm-qt/releases/download/$pkgver/pcmanfm-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=" c656b89258b8156863057a6f99932174f6f2f4d85ffae85b18ff3f0e3c199624aff29866df3b5f78e826918321cc3298bfe492119e6e01aaf5495cc9500ea3e3 pcmanfm-qt-1.3.0.tar.xz "