void-packages/srcpkgs/nomacs/template

26 lines
861 B
Bash

# Template file for 'nomacs'
pkgname=nomacs
version=3.6.1
revision=3
build_style=cmake
build_wrksrc="ImageLounge"
configure_args="-DUSE_SYSTEM_QUAZIP=1"
hostmakedepends="pkg-config"
makedepends="qt5-tools-devel qt5-svg-devel exiv2-devel libopencv-devel libraw-devel quazip-qt5-devel"
short_desc="Simple yet powerful Qt imageviewer"
maintainer="Kharlamov Alexey <der@2-47.ru>"
license="GPL-3"
homepage="http://nomacs.org/"
distfiles="https://github.com/nomacs/nomacs/archive/${version}.tar.gz"
checksum=09b289cac51a5fdccc02aa4a60405bbbd4b5bfdb6b2a52ca5b0cb3b0f7a87068
pre_configure() {
# fix build with quazip-qt5
sed -i 's/find_package(QuaZIP/find_package(QuaZip5/' cmake/Unix.cmake
sed -e 's/include <quazip/&5/' \
-i src/DkCore/DkImageLoader.cpp \
-i src/DkCore/DkImageContainer.cpp \
-i src/DkCore/DkBasicLoader.cpp \
-i src/DkGui/DkDialog.cpp
}