Continuing on this topic currently my package.yml is as follows (very different from the original and what I find on opensuse and ARCH), but to me it seems to work fine.
name : gmic
version : 3.3.0
release : 60
source :
- https://gmic.eu/files/source/gmic_3.3.0.tar.gz : 9c00a2b4c33ff4879860eadb89f6c836062433a5debdaffbf41f98bfa83081f3
license :
- CECILL-2.1
- CECILL-C
component :
- multimedia.graphics
- gimp : multimedia.graphics
summary :
- GREYC's Magic for Image Computing
- gimp : G'MIC plugin for GIMP
description: |
G'MIC is a full-featured open-source framework for image processing, distributed under the CeCILL free software licenses (LGPL-like and/or GPL-compatible). It provides several different user interfaces to convert / manipulate / filter / visualize generic image datasets, ranging from 1d scalar signals to 3d+t sequences of multi-spectral volumetric images, hence including 2d color images.
patterns :
- gimp : /usr/lib64/gimp
builddeps :
- pkgconfig(GraphicsMagick)
- pkgconfig(OpenEXR)
- pkgconfig(Qt6UiTools)
- pkgconfig(eigen3)
- pkgconfig(fftw3)
- pkgconfig(gimp-2.0)
- pkgconfig(hdf5)
- pkgconfig(libcurl)
- pkgconfig(libpng)
- pkgconfig(libtiff-4)
- pkgconfig(libturbojpeg)
- pkgconfig(opencv4)
- pkgconfig(xext)
- pkgconfig(Qt6OpenGL)
rundeps :
- gimp : gmic
build : |
%make lib
%make cli_shared
%make gmic_qt_shared
%make gimp_shared
install : |
%make_install
install -Dm00644 resources/gmic_cluts.gmz $installdir/usr/share/gmic/gmic_cluts.gmz
I don't think the last line is necessary...
There is no more gmic_qt_krita because it uses one of its forks currently, so I updated krita with the following package.yml.
name : krita
version : 5.1.5
release : 89
source :
- https://download.kde.org/stable/krita/5.1.5/krita-5.1.5.tar.xz : 45eac209a3c4ac285ca223e1978d35694cdca31b0075e596ad252d6619f04249
-- https://github.com/amyspark/gmic/releases/tag/v3.2.4.1/gmic-3.2.4.1-patched.tar.xz : 06659fe05f7735827a93d637de2267512efb28bb0d55ce573495fecb59172604
homepage : https://krita.org
license : GPL-3.0-or-later
component : multimedia.graphics
summary : Free and open source digital painting application
description: |
Krita is a professional FREE and open source painting program. It is made by artists that want to see affordable art tools for everyone.
patterns : /*
networking : yes
builddeps :
- pkgconfig(OpenColorIO)
- pkgconfig(OpenEXR)
- pkgconfig(Qt5Multimedia)
- pkgconfig(Qt5Quick)
- pkgconfig(Qt5Svg)
- pkgconfig(Qt5X11Extras)
- pkgconfig(eigen3)
- pkgconfig(exiv2)
- pkgconfig(fftw3)
- pkgconfig(gsl)
- pkgconfig(kseexpr)
- pkgconfig(libheif)
- pkgconfig(libmypaint)
- pkgconfig(libopenjp2)
- pkgconfig(libpng)
- pkgconfig(libraw)
- pkgconfig(libssh)
- pkgconfig(libtiff-4)
- pkgconfig(libturbojpeg)
- pkgconfig(libwebp)
- pkgconfig(poppler-qt5)
- pkgconfig(python3)
- pkgconfig(quazip)
- pkgconfig(xcb-atom)
- pkgconfig(xcb-keysyms)
- pkgconfig(xi)
- giflib-devel
- gmic-devel
- kcompletion-devel
- kconfig-devel
- kcoreaddons-devel
- kcrash-devel
- kdesignerplugin-devel
- kguiaddons-devel
- ki18n-devel
- kitemmodels-devel
- kitemviews-devel
- kwidgetsaddons-devel
- kwindowsystem-devel
- libboost-devel
- python-sip
- python3-qt5
- subversion
- vc
rundeps :
- breeze
- ffmpeg
- python3-qt5
setup : |
tar -xf $sources/gmic-3.2.4.1-patched.tar.xz -C .
%cmake_ninja -DBUILD_TESTING=OFF \
-DENABLE_UPDATERS=OFF \
-DFETCH_TRANSLATIONS=ON \
-DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON \
-DKDE_INSTALL_CONFDIR=/usr/share/defaults/krita
build : |
%ninja_build
install : |
%ninja_install
rm -rf $installdir/usr/share/applications/krita*.desktop
pushd gmic-3.2.4.1-patched/gmic-qt
%cmake_ninja -DCMAKE_PREFIX_PATH=$installdir/usr \
-DENABLE_LTO=ON \
-DENABLE_SYSTEM_GMIC=OFF \
-DGMIC_QT_HOST=krita-plugin
%ninja_build
%ninja_install
rm -rf $installdir/usr/share/gmic
popd
%qml_cache
N.B.: "-DENABLE_SYSTEM_GMIC=OFF \"
I'm less sure about this than the previous package, but even this seems to work.
About digikam there would be a fork for him too, but at the moment I have not tried yet:
https://discuss.pixls.us/t/arch-manjaro-gmic-plugin-for-digikam-question/37000/8
https://github.com/cgilles/gmic-qt/tree/master