# Maintainer: Alex Raschi pkgname=nomacs pkgver=3.12 pkgrel=1 pkgdesc="Small and fast Qt image viewer" url="https://nomacs.org/" arch="all" license="GPL-3.0-or-later" depends="qt5-qtimageformats" makedepends="cmake qt5-qtbase-dev qt5-qttools-dev qt5-qtsvg-dev exiv2-dev quazip-qt5-dev libwebp-dev lcov libzip-dev" subpackages="$pkgname-doc $pkgname-lang" options="!check" # no test suite source="$pkgname-$pkgver.tar.gz::https://github.com/nomacs/$pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver/ImageLounge" build() { cd "$builddir" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DENABLE_OPENCV=False \ -DENABLE_RAW=False \ -DENABLE_TIFF=False \ -DENABLE_QT_DEBUG=False \ -DENABLE_TRANSLATIONS=True \ -DENABLE_PLUGINS=False \ -DUSE_SYSTEM_QUAZIP=True \ ${CMAKE_CROSSOPTS} make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } lang() { pkgdesc="Languages for package $pkgname" depends="" local langdir="usr/share/$pkgname/Image Lounge/translations" mkdir -p "$subpkgdir"/"$langdir" mv "$pkgdir"/"$langdir"/* "$subpkgdir"/"$langdir"/ } sha512sums="4508354d48a6115cd40f701cc90cbbcb84490e99eaac0295db48f6fea99550d5e2b3e7365128d0c9cc4eeb621906f55e275603d84cb8b6bb164d0b5e2e192119 nomacs-3.12.tar.gz"