# Contributor: Leo # Maintainer: pkgname=qimgv pkgver=0.9 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() { cmake -B build . \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DEXIV2=ON \ -DVIDEO_SUPPORT=ON \ -DOPENCV_SUPPORT=OFF \ -DKDE_SUPPORT=OFF make -C build } package() { make -C build DESTDIR="$pkgdir" install } 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="1ea2a380ed0286b4773d87d2f57dafb0054ad53d9dd4274744bb76cac5622f71a1e37b06430370e9e00e8ff38c2c8c06c3d02bb1b493642db475f3dcd6817568 qimgv-0.9.tar.gz"