# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Contributor: Gilles CHAUVIN pkgname=gimp-plugin-greycstoration pkgver=2.9 pkgrel=3 pkgdesc="A gimp image restoration plugin." arch=('i686' 'x86_64') url="http://sourceforge.net/project/showfiles.php?group_id=96492" depends=('gimp') makedepends=('perlxml' 'pkgconfig') license=("GPL") source=("http://switch.dl.sf.net/cimg/GREYCstoration-$pkgver.zip") md5sums=('67b6bfcadd485ee4669069da52a1e8f5') build() { cd $startdir/src/GREYCstoration-$pkgver/src sed -i 's|CIMG_XRANDR_FLAGS = -Dcimg_use_xrandr -lXrandr|#CIMG_XRANDR_FLAGS = -Dcimg_use_xrandr -lXrandr|' Makefile sed -i 's|#include "../CImg.h"|#include "CImg.h"|' greycstoration.cpp make linux || return 1 install -D -m0755 greycstoration4gimp $startdir/pkg/usr/lib/gimp/2.0/plug-ins/greycstoration }