void-packages/srcpkgs/nomacs/template

32 lines
1.1 KiB
Bash

# Template file for 'nomacs'
pkgname=nomacs
version=3.17.2287
revision=4
_plugins_ver=3.17.2285
build_wrksrc=ImageLounge
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=None -DENABLE_TRANSLATIONS=1
-DUSE_SYSTEM_QUAZIP=1"
hostmakedepends="pkg-config qt5-qmake qt5-host-tools quazip-devel"
makedepends="qt5-tools-devel qt5-svg-devel exiv2-devel libopencv-devel
libraw-devel quazip-devel"
short_desc="Simple yet powerful Qt imageviewer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/nomacs/nomacs"
distfiles="https://github.com/nomacs/nomacs/archive/${version}.tar.gz
https://github.com/novomesk/nomacs-plugins/archive/refs/tags/${_plugins_ver}.tar.gz>plugins.tar.gz"
checksum="6905ea615358f84a0c83d5b1b7077871dea0526ec667500a1951448cb845a92c
946b2d754be9ecca5cb155f7ecc5dcafb164f6c3dcc7bf5c3c0610d3b47774aa"
skip_extraction="plugins.tar.gz"
post_extract() {
cd ${build_wrksrc}
vsrcextract -C plugins "plugins.tar.gz"
}
post_patch() {
# XXX: remove this when updating, it no longer requires git as of 3.17.2295
vsed -i -e "s/import subprocess/return '${version}'/" ../scripts/versionupdate.py
}