void-packages/srcpkgs/krita/template
q66 d2950092c8 krita: fix checksum + build on non-x86
Having vc installed will make krita think there's arch-specific
optimizations for the given architecture, while they only have
them for x86. Do what e.g. Debian does and install it only when
on x86.

[ci skip]
2019-11-18 18:52:54 +01:00

28 lines
1.1 KiB
Bash

# Template file for 'krita'
pkgname=krita
version=4.2.7.1
revision=1
build_style=cmake
configure_args="-Wno-dev -DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules pkg-config python3"
makedepends="karchive-devel kconfig-devel kwidgetsaddons-devel kcompletion-devel
kcoreaddons-devel kguiaddons-devel ki18n-devel kitemmodels-devel kitemviews-devel
kwindowsystem-devel kio-devel kcrash-devel qt5-svg-devel qt5-multimedia-devel
boost-devel gsl-devel tiff-devel libjpeg-turbo-devel libraw-devel fftw-devel
opencolorio-devel eigen exiv2-devel libXi-devel libopenexr-devel libgomp-devel
poppler-qt5-devel giflib-devel python3-devel python3-sip-devel python3-PyQt5
python-PyQt5-devel quazip-devel libheif-devel"
short_desc="Painting and image editing program"
maintainer="John <johnz@posteo.net>"
license="GPL-3.0-only"
homepage="https://krita.org/"
distfiles="${KDE_SITE}/krita/${version}/krita-${version}.tar.gz"
checksum=3ed29fd9d8e067def55e703fc55312815c21041d274727e228bdbe0478c09c3d
nocross=yes
replaces="calligra-krita>=0"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) makedepends+=" vc";;
ppc64*) ;;
armv6*|ppc*) makedepends+=" libatomic-devel";;
esac