summaryrefslogblamecommitdiff
path: root/user/krita/APKBUILD
blob: bbe0c9797617a6bdb0bd6a9a5c645a20ffa4a0ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                  
            
        







                                                                              
                                                                           
                                                                           
                                                                           
                                                                               
                              

                                                                           
 
         










                                                                                          
                                       
                                    

                       


         
                            



                                          
                                               

 
                                                                                                                                                                 
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=krita
pkgver=4.2.1
pkgrel=1
pkgdesc="Digital painting program by KDE"
url="https://krita.org/"
arch="all"
options="!check"  # Tests require X11.
license="GPL-2.0+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev karchive-dev kconfig-dev
	kwidgetsaddons-dev kcompletion-dev kcoreaddons-dev kguiaddons-dev
	ki18n-dev kitemmodels-dev kitemviews-dev kwindowsystem-dev zlib-dev
	qt5-qtsvg-dev qt5-qtmultimedia-dev kcrash-dev libice-dev libx11-dev
	libxcb-dev fftw-dev libpng-dev boost-dev tiff-dev libjpeg-turbo-dev
	kio-dev eigen-dev exiv2-dev lcms2-dev poppler-qt5-dev gsl-dev libxi-dev
	libraw-dev quazip-dev"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/krita/$pkgver/krita-$pkgver.tar.gz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DEIGEN3_INCLUDE_DIR=/usr/include/eigen3 \
		-DBUILD_TESTING=False \
		${CMAKE_CROSSOPTS} \
		-Bbuild
	make -C build
}

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" -C build install
}

sha512sums="879d1efe2e3f888a5f37a843ae739f6441d142f0a2831f15b11e7a86e1c4df99fee0bda9accc7a41d374f3df16cff60ac17e490b4f656db0b480fd32a5bca3f1  krita-4.2.1.tar.gz"