# Maintainer: Antoni Aloy pkgname=libfm-qt pkgver=1.3.0 pkgrel=2 pkgdesc="Qt port of libfm" url="https://github.com/lxqt/libfm-qt" arch="all" license="LGPL-2.0-or-later" depends_dev=" libfm-dev libexif-dev lxqt-build-tools menu-cache-dev qt5-qtbase-dev qt5-qttools-dev qt5-qtx11extras-dev " makedepends=" $depends_dev cmake samurai " subpackages="$pkgname-dev $pkgname-lang" options="!check" # No testsuite source="https://github.com/lxqt/libfm-qt/releases/download/$pkgver/libfm-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 --install build } lang() { install_if="lang $pkgname=$pkgver-r$pkgrel" amove usr/share/$pkgname/translations } sha512sums=" fd7ecc1a8e94893682b7e0ca76805b36dbf184a4f2f7d84008ef81ea2257d994db0f8f8e18f890b8554fd1f20e23f8d7f20cf6b3112b32d66c969b683f8db3ba libfm-qt-1.3.0.tar.xz "