From 73a31f6d5e8db2b7746c1c7250f9ea208daceb1c Mon Sep 17 00:00:00 2001 From: Bart Ribbers <bribbers@disroot.org> Date: Thu, 19 Sep 2019 18:32:15 +0200 Subject: [PATCH] testing/krita: new aport --- testing/krita/APKBUILD | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 testing/krita/APKBUILD diff --git a/testing/krita/APKBUILD b/testing/krita/APKBUILD new file mode 100644 index 000000000000..366bf2d16899 --- /dev/null +++ b/testing/krita/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=krita +pkgver=4.2.6 +pkgrel=0 +arch="all" +url="https://krita.org/" +pkgdesc="Free digital painting application. Digital Painting, Creative Freedom!" +license="GPL-2.0-or-later" +makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev qt5-qtmultimedia-dev qt5-qttools-dev kconfig-dev kwidgetsaddons-dev kcompletion-dev kcoreaddons-dev kguiaddons-dev ki18n-dev kitemmodels-dev kitemviews-dev kwindowsystem-dev karchive-dev kcrash-dev libxi-dev boost-dev libraw-dev fftw-dev eigen-dev exiv2-dev lcms2-dev quazip-dev gsl-dev zlib-dev openexr-dev tiff-dev libjpeg-turbo-dev giflib-dev libheif-dev python3-dev py3-qt5 poppler-qt5-dev xcb-util-dev" +checkdepends="xvfb-run" +source="https://download.kde.org/stable/krita/$pkgver/krita-$pkgver.tar.xz" +subpackages="$pkgname-lang" +options="!check" # Breaks compilation on Musl https://bugs.kde.org/show_bug.cgi?id=412058 + +prepare() { + default_prepare + + mkdir "$builddir"/build +} + +build() { + cd "$builddir"/build + cmake "$builddir" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON \ + -DBUILD_TESTING=OFF + make +} + +check() { + cd "$builddir"/build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir"/build + DESTDIR="$pkgdir" make install +} + +sha512sums="c6c6bb0b2d46b421c6edd38427f7a71636c78267413a4265a61123509ebac8f24d981ce5b5540f0813e26b89e655d44c2cc32395694161eb925f2789b0e8119e krita-4.2.6.tar.xz" -- GitLab