summaryrefslogtreecommitdiff
path: root/community/gmic/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/gmic/PKGBUILD')
-rw-r--r--community/gmic/PKGBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/community/gmic/PKGBUILD b/community/gmic/PKGBUILD
new file mode 100644
index 000000000..125be5fa5
--- /dev/null
+++ b/community/gmic/PKGBUILD
@@ -0,0 +1,63 @@
+# $Id: PKGBUILD 93486 2013-07-04 10:12:04Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: farid <farid at archlinuc-br.org>
+# Contributor: Archie <Mymaud@gmail.com>
+
+pkgbase=gmic
+pkgname=("gmic" "gimp-plugin-gmic" "zart")
+pkgver=1.5.6.1
+pkgrel=1
+arch=("i686" "x86_64")
+url="http://gmic.sourceforge.net"
+license=("custom:CeCILL")
+makedepends=('gimp' 'qt4' 'fftw' 'openexr' 'opencv' 'mesa' 'gtk2')
+#options=('!emptydirs')
+source=("http://downloads.sourceforge.net/sourceforge/gmic/gmic_${pkgver}.tar.gz"
+ "opencv-buildfix.patch")
+md5sums=('06545a7c2f73b55b0d35e5f5544dce88'
+ '120319b0d6c81c5af186abe2281b79ca')
+
+prepare() {
+ cd "${srcdir}/gmic-${pkgver}"
+ patch -p1 -i "${srcdir}/opencv-buildfix.patch"
+ find "${srcdir}/gmic-${pkgver}/zart" -type f -execdir chmod 644 '{}' \;
+ find "${srcdir}/gmic-${pkgver}/zart" -type d -execdir chmod 755 '{}' \;
+ sed -i 's|qmake zart.pro|qmake-qt4 zart.pro|' src/Makefile
+}
+
+build() {
+ cd "${srcdir}/gmic-${pkgver}"
+ make -C src all
+}
+
+package_gmic() {
+ pkgdesc="GREYC's Magic Image Converter: image processing framework"
+ depends=("fftw" "libtiff" "libjpeg" "libpng" "openexr" "libx11")
+ replaces=("greycstoration")
+
+ cd "${srcdir}/gmic-${pkgver}"
+ make -C src install DESTDIR="$pkgdir" USR="/usr"
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -rf "${pkgdir}/usr/"{bin/zart,lib/gimp,share/zart}
+}
+
+package_zart() {
+ pkgdesc="A GUI for G'MIC real-time manipulations on the output of a webcam"
+ depends=("opencv" "fftw" "qt4")
+
+ cd "${srcdir}/gmic-${pkgver}"
+ make -C src install DESTDIR="$pkgdir" USR="/usr"
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -rf "${pkgdir}/usr/"{bin/gmic,include,lib,share/{man,bash-completion}}
+}
+
+package_gimp-plugin-gmic() {
+ pkgdesc="Gimp plugin for the G'MIC image processing framework"
+ depends=("gimp" "fftw")
+ replaces=("gimp-plugin-greycstoration" "gimp-plugin-gmic4gimp")
+
+ cd "${srcdir}/gmic-${pkgver}"
+ install -Dm755 src/gmic_gimp "${pkgdir}/usr/lib/gimp/2.0/plug-ins/gmic_gimp"
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}