blob: 6d2b6b3220673cc3ddea8722fc3269f937ff7ccf (
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
|
pkgname=gimp-elsamuko-git
pkgver=r88.b401697
pkgrel=1
pkgdesc='Varoius Gimp scripts and plugins made by elsamuko'
arch=('i686' 'x86_64')
url='https://github.com/elsamuko/gimp-elsamuko'
license=('GPL3')
depends=(gimp opencv)
makedepends=(git qt5-base)
conflicts=(gimp-elsamuko-plugins gimp-elsamuko-scripts)
source=("git+$url.git")
md5sums=(SKIP)
pkgver(){
cd ${pkgname%-git}
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build(){
cd ${srcdir}
msg2 "Building get-curves plugin"
pushd ${pkgname%-git}/plugins/elsamuko-get-curves
gimptool --build elsamuko-get-curves.c
popd
msg2 "Building depthmap-cv plugin"
pushd ${pkgname%-git}/plugins/elsamuko-depthmap-cv
sed -e '/^QMAKE_POST_LINK/s/^/#/g' -i elsamuko-depthmap-cv.pro
qmake
make
# gimptool --build elsamuko-depthmap-cv.cpp
popd
msg2 "Building saturation plugin"
pushd ${pkgname%-git}/plugins/elsamuko-saturation
sed -e '/^QMAKE_POST_LINK/s/^/#/g' -i elsamuko-saturation.pro
qmake
make
# gimptool --build elsamuko-saturation.c
popd
}
package(){
_base_dir="$pkgdir/usr/share/gimp/2.0"
_scripts_dir="$_base_dir/scripts"
_plugins_dir="$_base_dir/plug-ins"
cd ${srcdir}/${pkgname%-git}
msg2 "Installing scripts"
install -dm755 "$_scripts_dir"
for script in scripts/*; do
install -Dm755 $script "$_base_dir/$script"
done
msg2 "Installing plugins"
cd ${srcdir}
install -dm755 "$_plugins_dir"
pushd ${pkgname%-git}/plugins/elsamuko-get-curves
install -Dm755 elsamuko-get-curves "$_plugins_dir/"
popd
pushd ${pkgname%-git}/plugins/elsamuko-depthmap-cv
install -Dm755 elsamuko-depthmap-cv "$_plugins_dir/"
popd
pushd ${pkgname%-git}/plugins/elsamuko-saturation
install -Dm755 elsamuko-saturation "$_plugins_dir/"
popd
}
|