void-packages/srcpkgs/gwenview/template
2020-03-06 07:56:12 +01:00

27 lines
1.2 KiB
Bash

# Template file for 'gwenview'
pkgname=gwenview
version=19.12.3
revision=2
build_style=cmake
hostmakedepends="extra-cmake-modules pkg-config qt5-qmake qt5-host-tools
python3 kdoctools kconfig kcoreaddons gettext"
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 ksolid-devel libjpeg-turbo-devel
exiv2-devel libkipi5-devel lcms2-devel baloo5-devel libkdcraw5-devel cfitsio-devel"
short_desc="Fast and easy to use image viewer by KDE"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.kde.org/applications/graphics/gwenview"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=b453cd55b7409bf8e4446a1b714dc66e73a0376d2da65b184b82f786767164e7
patch_args="-Np1"
pre_configure() {
if [ "$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
}