# Description: The GIMP
# URL:         http://www.gimp.org/
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager:    Simone Rota, sip at crux dot nu
# Depends on:  libart_lgpl, xorg-libxmu, xorg-libxpm, gegl
# Nice to have: gimp-print, libsdl, ghostscript, librsvg, libmng

name=gimp
version=2.8.18
release=1
source=(http://ftp.gimp.org/pub/gimp/v${version%.*}/gimp-$version.tar.bz2 cve-2013-1913)

build() {
  cd gimp-$version
  
  patch -p1 -i ../cve-2013-1913

  sed -i -e '/$(helpbrowser)/d' plug-ins/Makefile.in
  ./configure --prefix=/usr \
    --disable-static \
    --disable-python \
    --disable-nls \
    --without-webkit LIBS="-lm"

  make
  make DESTDIR=$PKG install
  rm -rf $PKG/usr/share/{gtk-doc,locale}
}
