void-packages/srcpkgs/gwenview/template
Helmut Pozimski 8bbc4f2f19 gwenview: update to 18.04.0.
Closes #13623.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-20 17:35:56 +02:00

25 lines
1.2 KiB
Bash

# Template file for 'gwenview'.
pkgname=gwenview
version=18.04.0
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules pkg-config qt5-qmake qt5-host-tools python kdoctools kconfig"
makedepends="qt5-devel qt5-svg-devel phonon-qt5-devel kio-devel kactivities5-devel
kitemmodels-devel ki18n-devel kdoctools-devel kparts-devel kwindowsystem-devel
kiconthemes-devel knotifications-devel libjpeg-turbo-devel exiv2-devel
libkipi5-devel lcms2-devel baloo5-devel libkdcraw5-devel cfitsio"
short_desc="Fast and easy to use image viewer by KDE"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2"
homepage="https://www.kde.org/applications/graphics/gwenview"
distfiles="https://download.kde.org/stable/applications/${version}/src/${pkgname}-${version}.tar.xz"
checksum=e5938ce2ae05a338daada1a8b6ecfb6706920def8201937f3683a717dc980745
pre_configure() {
if [ -n "$CROSS_BUILD" ]; then
mkdir build
_libjpeg_version=$(grep 'define JPEG_LIB_VERSION' /usr/${XBPS_CROSS_TRIPLET}/include/jconfig.h | awk '{print $3}')
echo "JPEGLIB_RUN_RESULT:STRING=${_libjpeg_version}" >> build/CMakeCache.txt
echo "JPEGLIB_RUN_RESULT__TRYRUN_OUTPUT:STRING=${_libjpeg_version}" >> build/CMakeCache.txt
fi
}