void-packages/srcpkgs/qimgv/template
2021-10-01 05:00:38 -03:00

28 lines
1.1 KiB
Bash

# Template file for 'qimgv'
pkgname=qimgv
version=1.0.2
revision=1
build_style=cmake
configure_args="$(vopt_if video -DVIDEO_SUPPORT=ON -DVIDEO_SUPPORT=OFF)
$(vopt_if scale -DOPENCV_SUPPORT=ON -DOPENCV_SUPPORT=OFF)
$(vopt_if kde -DKDE_SUPPORT=ON -DKDE_SUPPORT=OFF)"
hostmakedepends="pkg-config"
makedepends="exiv2-devel qt5-devel qt5-svg-devel $(vopt_if video mpv-devel)
$(vopt_if scale libopencv4-devel) $(vopt_if kde kwindowsystem-devel)"
depends="hicolor-icon-theme qt5-imageformats"
short_desc="Cross-platform image viewer with webm support"
maintainer="travankor <travankor@tuta.io>"
license="GPL-3.0-or-later"
homepage="https://github.com/easymodo/qimgv"
distfiles="https://github.com/easymodo/qimgv/archive/v${version}.tar.gz"
checksum=ace75077c5b6f3cb2b0d40b24482b3778728d98dce75ed8186c7ae4282e57634
build_options="scale video kde"
build_options_default="video"
desc_option_scale="Enable high quality scaling options"
desc_option_video="Enable video support"
desc_option_kde="Enable background blur (KDE) option"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake"
fi