blob: f77a562f56803d48ac101a349a6edc00fe14ec09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: farid <farid at archlinuc-br.org>
# Contributor: Archie <Mymaud@gmail.com>
# Contributor: Calogero ScarnĂ <info@codelinsoft.it>
pkgbase=gmic-pre
pkgname=(gmic-pre-gimp3
gimp-plugin-gmic-pre-gimp3)
pkgver=3.5.0
_pkgver=prerelease
__pkgver=3.5.0_pre
pkgrel=6
pkgdesc="Prerelease G-MIC for GIMP3"
arch=(x86_64)
url='https://gmic.eu/'
license=(CECILL-C)
makedepends=(cmake
eigen
fftw
graphicsmagick
opencv
openexr
qt6-base
qt6-tools
gimp)
source=(https://gmic.eu/files/prerelease/gmic_$_pkgver.tar.gz)
sha256sums=('07192137c1438134e568c002097e7404e05c807e04b59489231bb6d3605bdede')
build() {
cmake -B build -S gmic-$__pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_DYNAMIC_LINKING=ON \
-DBUILD_LIB_STATIC=OFF \
-DENABLE_OPENCV=ON
cmake --build build
# Temp install to link gmic-qt
DESTDIR="tmp-install" cmake --install build
export LDFLAGS="$LDFLAGS -L../build"
cmake -B build-qt -S gmic-$__pkgver/gmic-qt \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_DYNAMIC_LINKING=ON \
-DGMIC_PATH="$srcdir"/gmic-$__pkgver/src \
-DCMAKE_PREFIX_PATH="$srcdir"/tmp-install/usr \
-DGMIC_QT_HOST=none
cmake --build build-qt
cmake -B build-gimp -S gmic-$__pkgver/gmic-qt \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_DYNAMIC_LINKING=ON \
-DGMIC_PATH="$srcdir"/gmic-$__pkgver/src \
-DCMAKE_PREFIX_PATH="$srcdir"/tmp-install/usr \
-DGMIC_QT_HOST=gimp3
cmake --build build-gimp
}
package_gmic-pre-gimp3() {
pkgdesc="GREYC's Magic Image Converter: image processing framework - Prerelease G-MIC for GIMP3"
depends=(curl
fftw
gcc-libs
glibc
graphicsmagick
imath
libjpeg-turbo
libpng
libtiff
libx11
opencv
openexr
zlib
gimp)
optdepends=('qt6-base: for the Qt UI')
conflicts=('cimg' 'gmic' 'gimp-plugin-gmic')
replaces=('gmic-pre' 'gimp-plugin-gmic-pre')
DESTDIR="$pkgdir" cmake --install build
install -Dm644 gmic-$__pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
# .cpp is included by .h
install -Dm644 gmic-$__pkgver/src/gmic.cpp -t "$pkgdir"/usr/include
DESTDIR="$pkgdir" cmake --install build-qt
install -Dm644 gmic-$__pkgver/resources/gmic_cluts.gmz -t "$pkgdir"/usr/share/gmic
}
package_gimp-plugin-gmic-pre-gimp3() {
pkgdesc="Gimp plugin for the G'MIC image processing framework - Prerelease G-MIC for GIMP3"
depends=(babl
fftw
gcc-libs
gegl
glib2
glibc
gmic-pre-gimp3
libx11
qt6-base
zlib
gimp)
conflicts=('cimg' 'gmic' 'gimp-plugin-gmic')
replaces=('gmic-pre' 'gimp-plugin-gmic-pre')
DESTDIR="$pkgdir" cmake --install build-gimp
install -Dm644 gmic-$__pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|