summaryrefslogtreecommitdiff
path: root/user/krita/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-14 04:34:00 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-14 04:34:00 -0500
commit7525fb5e57d181c4833fb07c9913ab69521ad868 (patch)
tree966885ff4237c75cdbccd64b052d7e3c77414609 /user/krita/APKBUILD
parent9ff1e121b49fc0d37a4067d97553038991e54245 (diff)
downloadpackages-7525fb5e57d181c4833fb07c9913ab69521ad868.tar.gz
packages-7525fb5e57d181c4833fb07c9913ab69521ad868.tar.bz2
packages-7525fb5e57d181c4833fb07c9913ab69521ad868.tar.xz
packages-7525fb5e57d181c4833fb07c9913ab69521ad868.zip
user/krita: new package
Diffstat (limited to 'user/krita/APKBUILD')
-rw-r--r--user/krita/APKBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/user/krita/APKBUILD b/user/krita/APKBUILD
new file mode 100644
index 000000000..b25d10d38
--- /dev/null
+++ b/user/krita/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=krita
+pkgver=3.3.3
+pkgrel=0
+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 kio-dev
+ qt5-qtsvg-dev qt5-qtmultimedia-dev kcrash-dev libice-dev libx11-dev
+ libxcb-dev zlib-dev libpng-dev boost-dev tiff-dev libjpeg-turbo-dev
+ fftw-dev eigen-dev exiv2-dev lcms2-dev openexr-dev poppler-qt5-dev
+ gsl-dev libxi-dev"
+install=""
+subpackages="$pkgname-lang"
+source="https://download.kde.org/stable/krita/$pkgver/krita-$pkgver.tar.gz"
+builddir="$srcdir/krita-$pkgver/build"
+
+prepare() {
+ mkdir "$builddir"
+ # we CANNOT patch or call default_prepare because of builddir
+}
+
+build() {
+ cd "$builddir"
+ 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 \
+ ${CMAKE_CROSSOPTS} \
+ ..
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="b6dc30809e0d6c19fee4bbb240aa53c65e88361ebe273c73c2f24f43904c3cd51719dadb9c11fb7f691f17d75732374295ce904810d8893b7f95b45f859901e0 krita-3.3.3.tar.gz"