# Maintainer: Leo pkgname=qimgv pkgver=0.8.5 pkgrel=0 pkgdesc="Cross-platform image viewer with webm support" url="https://github.com/easymodo/qimgv" options="!check" arch="all" license="GPL-3.0-or-later" depends="hicolor-icon-theme" depends_dev="qt5-qtbase-dev exiv2-dev mpv-dev" makedepends="$depends_dev cmake" subpackages="$pkgname-dev $pkgname-mpv" source="$pkgname-$pkgver.tar.gz::https://github.com/easymodo/qimgv/archive/v$pkgver.tar.gz" build() { mkdir build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DEXIV2=ON \ -DVIDEO_SUPPORT=ON \ -DKDE_SUPPORT=OFF cmake --build . } package() { cd "$builddir"/build cmake --build . --target install -- DESTDIR="$pkgdir" } mpv() { pkgdesc="$pkgdesc (mpv support)" install_if="$pkgname=$pkgver-r$pkgrel mpv-libs" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libqimgv_player_mpv.so.* "$subpkgdir"/usr/lib } sha512sums="f4c3df7db433eca04ed0827039a02fcbb6e0d5b2f696010351dc6238c39b7a08784780ad8d56f3701d13506dd6c64671ce361817928d7fb2bb25b88c3f3d32ce qimgv-0.8.5.tar.gz"