diff options
author | Piotr Rogoża | 2015-06-14 16:26:15 +0200 |
---|---|---|
committer | Piotr Rogoża | 2015-06-14 16:26:15 +0200 |
commit | 4fdb0ebd5f3f82dd212d8b3db411ce2a1e1aa460 (patch) | |
tree | fced273afb6abf739533bb9a9ffddad8591e369d | |
download | aur-4fdb0ebd5f3f82dd212d8b3db411ce2a1e1aa460.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 73 | ||||
-rw-r--r-- | PKGBUILD | 229 | ||||
-rw-r--r-- | cimg.patch | 13 | ||||
-rw-r--r-- | depthmap-cv.patch | 12 | ||||
-rw-r--r-- | eaw-sharpen.patch | 13 | ||||
-rw-r--r-- | face-detect-cv.patch | 37 | ||||
-rw-r--r-- | gimp-plugin-get-curves.install | 8 | ||||
-rw-r--r-- | gimp-plugin-octave.install | 7 |
8 files changed, 392 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..16c1df40ea60 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,73 @@ +pkgbase = gimp-elsamuko-plugins + pkgdesc = Varoius Gimp plugins made by elsamuko + pkgver = 0.1 + pkgrel = 4 + url = https://sites.google.com/site/elsamuko/gimp + arch = i686 + arch = x86_64 + license = GPL + makedepends = gimp + makedepends = opencv + makedepends = unzip + makedepends = cimg + depends = gimp + noextract = AlienSkin-examples.zip + source = https://sites.google.com/site/elsamuko/gimp/depthmap/elsamuko-depthmap-cv.tar.gz + source = depthmap-cv.patch + source = https://sites.google.com/site/elsamuko/forensics/clone-detection/elsamuko-copy-move.c + source = https://sites.google.com/site/elsamuko/gimp/gimp-octave/elsamuko-gimp-octave.c + source = https://sites.google.com/site/elsamuko/gimp/gimp-octave/filter_pack.tar.gz + source = https://sites.google.com/site/elsamuko/gimp/temperature/elsamuko-temperature.c + source = https://sites.google.com/site/elsamuko/gimp/eaw-sharpen/elsamuko-eaw-sharpen.tar.gz + source = eaw-sharpen.patch + source = https://sites.google.com/site/elsamuko/gimp/facedetect/elsamuko-facedetect-cv.tar.gz + source = face-detect-cv.patch + source = https://sites.google.com/site/elsamuko/gimp/get-curves/elsamuko-get-curves.c + source = https://sites.google.com/site/elsamuko/gimp/get-curves/AlienSkin-examples.zip + source = https://sites.google.com/site/elsamuko/gimp/get-curves/elsamuko-kodachrome + source = https://sites.google.com/site/elsamuko/gimp/heatmap/elsamuko-heatmap.c + source = https://sites.google.com/site/elsamuko/forensics/hsv-analysis/elsamuko-hsv-analysis.c + source = https://sites.google.com/site/elsamuko/forensics/lab-analysis/elsamuko-lab-analysis.tar.gz + source = cimg.patch + sha256sums = 37081258b6401bcc095d86b3a313b8fc4691f2f70b75e60d6f96be26ab1eb963 + sha256sums = 70c9ef3ab10a5fdbf389266e2bcd30047191ac520740b196da93caefa4621be8 + sha256sums = 2cfa1516ab49d1f8d94168c694219be940c2154f4128e3b3e77a8a24e8940312 + sha256sums = 890e94b870278f49c1291eeb56efdcb6bffdfd8a5e6cba210dc7b47947f5bf2a + sha256sums = 20c8ec08587d61d87e91989a9655d693904eb56f402c1eb574c5e4c3a13d4ad1 + sha256sums = e548334b3aebc039a2ac92d1f24d0323ced5163acdfa47399e727a7853f469ed + sha256sums = 382f1c7f5fbdb653fcaccb95c84416ba68163c7fba74edff0e62c885005620a5 + sha256sums = de9312250d598cc4f599958edb45f2219779bb17cf2f834215cc53ee4d72f770 + sha256sums = f06daefe35132d87734b3854a58fa0847b7b313b86ae9f076883b651a0592d16 + sha256sums = d1fed09664684d4436902d261d4202b71b8f54ab58bcbdcde000ed51d8e65859 + sha256sums = 58a136880bc4c83b768663caf28bd9aedfc3dca2bfb845d44d3f099926e98a80 + sha256sums = 14cca94597b688aa6f2d4fff2bf807a3f9a0e7163dff897129dc685148029f6f + sha256sums = c8ccb4ee657e24d89ff9e3bb279cc6f552d8d4e3e3e8d76a107c763eafd58d91 + sha256sums = f3514a0a99c2e9ebe318402f8bf1800cd11845f286763bbc5b33de38b22141d4 + sha256sums = 6437349ceba4a7923bb66eae5d69f0a8077137fa340d4460d71295dbaa1bdbec + sha256sums = 2aa644462f919e77f8dd370dd3ed7a72f1c875f4227e99f520c89dd9a9186884 + sha256sums = 2cbc494ac75df79f9c783fdbf5faf5ce69548a3c711b023e300cddb7047264bf + +pkgname = gimp-elsamuko-plugins + +pkgname = gimp-plugin-depthmap + +pkgname = gimp-plugin-copy-move + +pkgname = gimp-plugin-octave + install = gimp-plugin-octave.install + +pkgname = gimp-plugin-temperature + +pkgname = gimp-plugin-eaw-sharpen + +pkgname = gimp-plugin-facedetect + +pkgname = gimp-plugin-get-curves + install = gimp-plugin-get-curves.install + +pkgname = gimp-plugin-heatmap + +pkgname = gimp-plugin-hsv-analysis + +pkgname = gimp-plugin-lab-analysis + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1655d5326c98 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,229 @@ +# Maintainer: Piotr Rogoża <piotr.r.public at gmail dot com> +# Contributor: Piotr Rogoża <piotr.r.public at gmail dot com> + +pkgbase=gimp-elsamuko-plugins +# AUR workaround +pkgname=gimp-elsamuko-plugins +true && pkgname=( + gimp-elsamuko-plugins + gimp-plugin-depthmap + gimp-plugin-copy-move + gimp-plugin-octave + gimp-plugin-temperature + gimp-plugin-eaw-sharpen + gimp-plugin-facedetect + gimp-plugin-get-curves + gimp-plugin-heatmap + gimp-plugin-hsv-analysis + gimp-plugin-lab-analysis +) +pkgver=0.1 +pkgrel=4 +arch=(i686 x86_64) +url='https://sites.google.com/site/elsamuko/gimp' +pkgdesc='Varoius Gimp plugins made by elsamuko' +license=('GPL') +depends=(gimp) +makedepends=( +gimp +opencv +unzip +cimg +) +source=( +https://sites.google.com/site/elsamuko/gimp/depthmap/elsamuko-depthmap-cv.tar.gz +depthmap-cv.patch +https://sites.google.com/site/elsamuko/forensics/clone-detection/elsamuko-copy-move.c +https://sites.google.com/site/elsamuko/gimp/gimp-octave/elsamuko-gimp-octave.c +https://sites.google.com/site/elsamuko/gimp/gimp-octave/filter_pack.tar.gz +https://sites.google.com/site/elsamuko/gimp/temperature/elsamuko-temperature.c +https://sites.google.com/site/elsamuko/gimp/eaw-sharpen/elsamuko-eaw-sharpen.tar.gz +eaw-sharpen.patch +https://sites.google.com/site/elsamuko/gimp/facedetect/elsamuko-facedetect-cv.tar.gz +face-detect-cv.patch +https://sites.google.com/site/elsamuko/gimp/get-curves/elsamuko-get-curves.c +https://sites.google.com/site/elsamuko/gimp/get-curves/AlienSkin-examples.zip +https://sites.google.com/site/elsamuko/gimp/get-curves/elsamuko-kodachrome +https://sites.google.com/site/elsamuko/gimp/heatmap/elsamuko-heatmap.c +https://sites.google.com/site/elsamuko/forensics/hsv-analysis/elsamuko-hsv-analysis.c +https://sites.google.com/site/elsamuko/forensics/lab-analysis/elsamuko-lab-analysis.tar.gz +cimg.patch +) +sha256sums=('37081258b6401bcc095d86b3a313b8fc4691f2f70b75e60d6f96be26ab1eb963' + '70c9ef3ab10a5fdbf389266e2bcd30047191ac520740b196da93caefa4621be8' + '2cfa1516ab49d1f8d94168c694219be940c2154f4128e3b3e77a8a24e8940312' + '890e94b870278f49c1291eeb56efdcb6bffdfd8a5e6cba210dc7b47947f5bf2a' + '20c8ec08587d61d87e91989a9655d693904eb56f402c1eb574c5e4c3a13d4ad1' + 'e548334b3aebc039a2ac92d1f24d0323ced5163acdfa47399e727a7853f469ed' + '382f1c7f5fbdb653fcaccb95c84416ba68163c7fba74edff0e62c885005620a5' + 'de9312250d598cc4f599958edb45f2219779bb17cf2f834215cc53ee4d72f770' + 'f06daefe35132d87734b3854a58fa0847b7b313b86ae9f076883b651a0592d16' + 'd1fed09664684d4436902d261d4202b71b8f54ab58bcbdcde000ed51d8e65859' + '58a136880bc4c83b768663caf28bd9aedfc3dca2bfb845d44d3f099926e98a80' + '14cca94597b688aa6f2d4fff2bf807a3f9a0e7163dff897129dc685148029f6f' + 'c8ccb4ee657e24d89ff9e3bb279cc6f552d8d4e3e3e8d76a107c763eafd58d91' + 'f3514a0a99c2e9ebe318402f8bf1800cd11845f286763bbc5b33de38b22141d4' + '6437349ceba4a7923bb66eae5d69f0a8077137fa340d4460d71295dbaa1bdbec' + '2aa644462f919e77f8dd370dd3ed7a72f1c875f4227e99f520c89dd9a9186884' + '2cbc494ac75df79f9c783fdbf5faf5ce69548a3c711b023e300cddb7047264bf') +noextract=(AlienSkin-examples.zip) +# env +_pluginsdir_eval='_pluginsdir="$pkgdir"/usr/lib/gimp/2.0/plug-ins' +_curvesdir_eval='_curvesdir="$pkgdir"/usr/share/$pkgname/examples/curves' +prepare() { + cd "$srcdir" + patch -Np1 -i "$srcdir"/eaw-sharpen.patch + patch -Np1 -i "$srcdir"/depthmap-cv.patch + patch -Np1 -i "$srcdir"/face-detect-cv.patch + cd $srcdir/elsamuko-lab-analysis + patch -Np1 -i $srcdir/cimg.patch +} +build() { + cd "$srcdir" + + # octave, get-curves, hsv-analysis + msg2 "Building octave plugin" + gimptool --build elsamuko-gimp-octave.c + msg2 "Building get-curves plugin" + gimptool --build elsamuko-get-curves.c + msg2 "Building hsv-analysis plugin" + gimptool --build elsamuko-hsv-analysis.c + # heatmap + msg2 "Building heatmap plugin" + CC='gcc -lm' gimptool --build elsamuko-heatmap.c + # copy-move + msg2 "Building copy-move plugin" + CC=g++ CFLAGS=-O3 LIBS=-lpthread gimptool --build elsamuko-copy-move.c + # temperature + msg2 "Building temperature plugin" + CC="g++ -O3" gimptool --build elsamuko-temperature.c + # eaw-sharpen + msg2 "Building eaw-sharpen plugin" + cd "$srcdir"/elsamuko-eaw-sharpen + make + # depthmap-cv + msg2 "Building depthmap-cv plugin" + gimptool --build elsamuko-depthmap.c + cd "$srcdir"/elsamuko-depthmap-cv + make + # face-detect-cv + msg2 "Building face-detect-cv plugin" + cd "$srcdir"/elsamuko-facedetect-cv + make + # lab-analysis + msg2 "Building lab-analysis plugin" + cd "$srcdir"/elsamuko-lab-analysis + CC='g++ -lX11' CFLAGS=-O3 gimptool --build elsamuko-lab-analysis.c +} +package_gimp-elsamuko-plugins(){ + true && pkgdesc='Varoius Gimp plugins made by elsamuko, transition package to split build' +} +package_gimp-plugin-depthmap (){ + true && pkgdesc="Generates a depthmap out of two stereoscopic images." + true && url='https://sites.google.com/site/elsamuko/gimp/depthmap' + true && depends=(gimp-elsamuko-plugins opencv) + eval $_pluginsdir_eval + cd "$srcdir"/elsamuko-depthmap-cv + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-depthmap-cv "$_pluginsdir"/ +} +package_gimp-plugin-copy-move (){ + true && pkgdesc="Detects image manipulations which have been created with the clone tool" + true && url='https://sites.google.com/site/elsamuko/forensics/clone-detection' + true && depends=(gimp-elsamuko-plugins) + eval $_pluginsdir_eval + cd "$srcdir" + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-copy-move "$_pluginsdir"/ +} +package_gimp-plugin-octave (){ + true && pkgdesc="Provides a simple interface between GIMP and GNU Octave" + true && url='https://sites.google.com/site/elsamuko/gimp/gimp-octave' + true && optdepends=('octave-image: run Octave script in the Gimp') + true && depends=(gimp-elsamuko-plugins) + install='gimp-plugin-octave.install' + eval $_pluginsdir_eval + cd "$srcdir" + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-gimp-octave "$_pluginsdir"/ + # examples .m files + install -dm755 "$pkgdir"/usr/share/$pkgname/examples + cp -r filter_pack "$pkgdir"/usr/share/$pkgname/examples + # doc files + install -dm755 "$pkgdir"/usr/share/doc/$pkgname + mv "$pkgdir"/usr/share/$pkgname/examples/filter_pack/README \ + "$pkgdir"/usr/share/doc/$pkgname/octave-plugin.README + +} +package_gimp-plugin-temperature (){ + true && pkgdesc="Changes the color temperature of an image via shifting it in the YUV color space" + true && url='https://sites.google.com/site/elsamuko/gimp/temperature' + true && depends=(gimp-elsamuko-plugins) + eval $_pluginsdir_eval + cd "$srcdir" + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-temperature "$_pluginsdir"/ +} +package_gimp-plugin-eaw-sharpen (){ + true && pkgdesc="A filter which sharpens an image without annoying halos" + true && url='https://sites.google.com/site/elsamuko/gimp/eaw-sharpen' + true && depends=(gimp-elsamuko-plugins) + eval $_pluginsdir_eval + cd "$srcdir"/elsamuko-eaw-sharpen + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-eaw-sharpen "$_pluginsdir"/ +} +package_gimp-plugin-facedetect (){ + true && pkgdesc="Detects faces in an input image" + true && url='https://sites.google.com/site/elsamuko/gimp/facedetect' + true && depends=(gimp-elsamuko-plugins opencv) + eval $_pluginsdir_eval + cd "$srcdir"/elsamuko-facedetect-cv + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-facedetect-cv "$_pluginsdir"/ + install -Dm644 haarcascade_frontalface_alt.xml "$_pluginsdir"/ +} +package_gimp-plugin-get-curves (){ + true && pkgdesc="Calculates the color curve from two different pictures" + true && url='https://sites.google.com/site/elsamuko/gimp/get-curves' + true && depends=(gimp-elsamuko-plugins) + install='gimp-plugin-get-curves.install' + _pluginsdir="$pkgdir"/usr/lib/gimp/2.0/plug-ins + eval $_pluginsdir_eval $_curvesdir_eval + cd "$srcdir" + install -dm755 "$_curvesdir" + unzip -q AlienSkin-examples.zip -d ${_curvesdir} + + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-get-curves "$_pluginsdir"/ + # GIMP curves tool settings + install -Dm644 "$srcdir"/elsamuko-kodachrome "$_curvesdir"/ + chmod 0644 "$_curvesdir"/* +} +package_gimp-plugin-heatmap (){ + true && pkgdesc="Calculates a heatmap from a picture" + true && url='https://sites.google.com/site/elsamuko/gimp/heatmap' + true && depends=(gimp-elsamuko-plugins) + eval $_pluginsdir_eval + cd "$srcdir" + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-heatmap "$_pluginsdir"/ +} +package_gimp-plugin-hsv-analysis (){ + true && pkgdesc="HSV analysis" + true && url='https://sites.google.com/site/elsamuko/forensics/hsv-analysis' + true && depends=(gimp-elsamuko-plugins) + eval $_pluginsdir_eval + cd "$srcdir" + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-hsv-analysis "$_pluginsdir"/ +} +package_gimp-plugin-lab-analysis (){ + true && pkgdesc="LAB analysis" + true && url='https://sites.google.com/site/elsamuko/forensics/lab-analysis' + true && depends=(gimp-elsamuko-plugins) + eval $_pluginsdir_eval + cd "$srcdir"/elsamuko-lab-analysis + install -dm755 "${_pluginsdir}" + install -Dm755 elsamuko-lab-analysis "$_pluginsdir"/ +} diff --git a/cimg.patch b/cimg.patch new file mode 100644 index 000000000000..e9aeb64e51d9 --- /dev/null +++ b/cimg.patch @@ -0,0 +1,13 @@ +diff --git a/elsamuko-lab-analysis.c b/elsamuko-lab-analysis.c +index 31c2e3e6..083b4adc 100644 +--- a/elsamuko-lab-analysis.c ++++ b/elsamuko-lab-analysis.c +@@ -27,7 +27,7 @@ + #include <glib.h> + #include <glib/gprintf.h> + +-#include "CImg.h" ++#include <CImg.h> + + #define PLUG_IN_PROC "elsamuko-lab-analysis" + #define PLUG_IN_BINARY "elsamuko-lab-analysis" diff --git a/depthmap-cv.patch b/depthmap-cv.patch new file mode 100644 index 000000000000..593dcd54e08d --- /dev/null +++ b/depthmap-cv.patch @@ -0,0 +1,12 @@ +diff --git a/elsamuko-depthmap-cv/elsamuko-depthmap-cv.c b/elsamuko-depthmap-cv/elsamuko-depthmap-cv.c +index 56c959a..8da530b 100644 +--- a/elsamuko-depthmap-cv/elsamuko-depthmap-cv.c ++++ b/elsamuko-depthmap-cv/elsamuko-depthmap-cv.c +@@ -20,6 +20,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <cv.h> ++#include <opencv2/legacy/legacy.hpp> + #include <highgui.h> + + // #include <sys/types.h> diff --git a/eaw-sharpen.patch b/eaw-sharpen.patch new file mode 100644 index 000000000000..f3a557c83838 --- /dev/null +++ b/eaw-sharpen.patch @@ -0,0 +1,13 @@ +diff --git a/elsamuko-eaw-sharpen/Makefile b/elsamuko-eaw-sharpen/Makefile +index 6e4f8ee..37f3fa0 100644 +--- a/elsamuko-eaw-sharpen/Makefile ++++ b/elsamuko-eaw-sharpen/Makefile +@@ -10,7 +10,7 @@ all: elsamuko-eaw-sharpen + + elsamuko-eaw-sharpen: elsamuko-eaw-sharpen.o + $(CXX) $(FLAGS) $(GIMP_FLAGS) elsamuko-eaw-sharpen.o -o elsamuko-eaw-sharpen $(GIMP_LIBS) +- $(GIMPTOOL) --install-bin elsamuko-eaw-sharpen ++# $(GIMPTOOL) --install-bin elsamuko-eaw-sharpen + + elsamuko-eaw-sharpen.o: elsamuko-eaw-sharpen.c equalizer_eaw.h + $(CXX) $(FLAGS) $(GIMP_FLAGS) -c elsamuko-eaw-sharpen.c $(GIMP_LIBS) diff --git a/face-detect-cv.patch b/face-detect-cv.patch new file mode 100644 index 000000000000..b87c4fb18b68 --- /dev/null +++ b/face-detect-cv.patch @@ -0,0 +1,37 @@ +diff --git a/elsamuko-facedetect-cv/Makefile b/elsamuko-facedetect-cv/Makefile +index 7a7611e..59ef44c 100644 +--- a/elsamuko-facedetect-cv/Makefile ++++ b/elsamuko-facedetect-cv/Makefile +@@ -4,7 +4,7 @@ GIMPTOOL=gimptool-2.0 + GIMP_FLAGS=`$(GIMPTOOL) --cflags` + GIMP_LIBS=`$(GIMPTOOL) --libs` + CV_FLAGS=`pkg-config --cflags opencv` +-CV_LIBS=`pkg-config --libs opencv` ++CV_LIBS=`pkg-config --libs opencv` -lm + + RM=rm -f + +@@ -12,8 +12,8 @@ all: elsamuko-facedetect-cv + + elsamuko-facedetect-cv: elsamuko-facedetect-cv.o + $(CXX) $(GIMP_FLAGS) $(CV_FLAGS) elsamuko-facedetect-cv.o -o elsamuko-facedetect-cv $(GIMP_LIBS) $(CV_LIBS) +- $(GIMPTOOL) --install-bin elsamuko-facedetect-cv +- $(GIMPTOOL) --install-bin haarcascade_frontalface_alt.xml ++# $(GIMPTOOL) --install-bin elsamuko-facedetect-cv ++# $(GIMPTOOL) --install-bin haarcascade_frontalface_alt.xml + + elsamuko-facedetect-cv.o: elsamuko-facedetect-cv.c + $(CXX) $(GIMP_FLAGS) $(CV_FLAGS) -c elsamuko-facedetect-cv.c $(GIMP_LIBS) $(CV_LIBS) +diff --git a/elsamuko-facedetect-cv/elsamuko-facedetect-cv.c b/elsamuko-facedetect-cv/elsamuko-facedetect-cv.c +index 141e158..0722897 100644 +--- a/elsamuko-facedetect-cv/elsamuko-facedetect-cv.c ++++ b/elsamuko-facedetect-cv/elsamuko-facedetect-cv.c +@@ -320,7 +320,7 @@ facedetect_region (GimpPixelRgn *srcPR, + gint i,j; + gint value; + CvSeq* faces = 0; +- const char* gimp_local_path = gimp_directory(); ++ const char* gimp_local_path = gimp_plug_in_directory(); + char plugin_path[PATH_MAX + 1]; + sprintf (plugin_path, "%s/%s/%s", gimp_local_path, PLUG_IN_DIR, FACE_XML); + diff --git a/gimp-plugin-get-curves.install b/gimp-plugin-get-curves.install new file mode 100644 index 000000000000..c24b18d55324 --- /dev/null +++ b/gimp-plugin-get-curves.install @@ -0,0 +1,8 @@ +pkgname=gimp-plugin-get-curves +post_install(){ + echo "Plugin get-curves: the curve will be saved in GIMP's curves folder (~/.gimp-version/curves/) and can be opened by GIMP's color curve tool" + echo "You can copy example curves from /usr/share/$pkgname/examples/curves to your curves folder." +} +post_upgrade(){ + post_install +} diff --git a/gimp-plugin-octave.install b/gimp-plugin-octave.install new file mode 100644 index 000000000000..16b4c95e8c28 --- /dev/null +++ b/gimp-plugin-octave.install @@ -0,0 +1,7 @@ +pkgname=gimp-plugin-octave +post_install(){ + echo "If you want use Octave plugin then install octave-image package and copy example files from /usr/share/$pkgname/examples/filter_pack to the ~/.gimp-octave" +} +post_upgrade(){ + post_install +} |