community/gmic to 2.9.0-11

This commit is contained in:
Kevin Mihelich 2020-05-25 14:34:42 +00:00
parent 60e5464190
commit f20da3c630

View file

@ -12,20 +12,20 @@
highmem=1
pkgbase=gmic
pkgname=(gmic zart gimp-plugin-gmic krita-plugin-gmic)
pkgname=(gmic zart gimp-plugin-gmic krita-plugin-gmic digikam-plugin-gmic)
pkgver=2.9.0
pkgrel=10
pkgrel=11
arch=(x86_64)
url="https://gmic.eu/"
license=(custom:CeCILL)
makedepends=(cmake gimp qt5-base fftw openexr opencv eigen graphicsmagick qt5-tools)
makedepends=(cmake gimp qt5-base fftw openexr opencv eigen graphicsmagick qt5-tools digikam)
source=(https://gmic.eu/files/source/gmic_$pkgver.tar.gz zart-opencv4.patch gmic-fix-cmake.patch)
sha256sums=('6233695f9b27999dcc7cc3aa7480b0f192bd44de85209091a3b4b8a65ae8c4b5'
'f4295a2b9a6730060e1dd763c602bd5156570d623bc69c2214dfd11e94943296'
'f4fd5e274347777e9d5a030c22a0f279e32dc023bb4723ca09a6c10c7d2cac75')
prepare() {
mkdir -p build{,-qt,-krita,-gimp,-zart}
mkdir -p build{,-qt,-krita,-gimp,-digikam,-zart}
sed -e 's|pkg_check_modules(OPENCV opencv)|pkg_check_modules(OPENCV opencv4)|' -i gmic-$pkgver/CMakeLists.txt
@ -77,6 +77,14 @@ build() {
-DENABLE_LTO=OFF
make
cd ../build-digikam
cmake ../gmic-$pkgver/gmic-qt \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_DYNAMIC_LINKING=ON \
-DGMIC_PATH="$srcdir"/gmic-$pkgver/src \
-DGMIC_QT_HOST=digikam
make
cd ../build-zart
unset CXXFLAGS # https://github.com/c-koi/zart/issues/14
qmake ../gmic-$pkgver/zart \
@ -125,3 +133,12 @@ package_krita-plugin-gmic() {
make DESTDIR="$pkgdir" install
install -Dm644 ../gmic-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_digikam-plugin-gmic() {
pkgdesc="DigiKam plugin for the G'MIC image processing framework"
depends=(digikam gmic)
cd build-digikam
make DESTDIR="$pkgdir" install
install -Dm644 ../gmic-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}