# Maintainer: Natanael Copa pkgname=gimp pkgver=2.8.0 pkgrel=2 pkgdesc="GNU Image Manipulation Program" url="http://www.gimp.org/" arch="all" license="GPL" makedepends="gtk+-dev libxpm-dev libxmu-dev librsvg-dev dbus-glib-dev libexif-dev desktop-file-utils intltool gegl-dev tiff-dev jpeg-dev libpng-dev iso-codes lcms-dev poppler-gtk-dev" install= subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="ftp://ftp.$pkgname.org/pub/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.bz2 CVE-2012-3236.patch " _builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying $i..." patch -s -p1 -N -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --disable-dependency-tracking \ --sysconfdir=/etc \ --enable-mp \ --enable-gimp-console \ --enable-gimp-remote \ --disable-python \ --with-gvfs \ --without-gnomevfs \ --with-gif-compression=lzw \ --without-aa || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 ln -s gimptool-2.0 "$pkgdir/usr/bin/gimptool" || return 1 find "$pkgdir" -name '*.la' -delete } md5sums="28997d14055f15db063eb92e1c8a7ebb gimp-2.8.0.tar.bz2 e01ea100274dbf0557336167933e5404 CVE-2012-3236.patch"