# Maintainer: Natanael Copa pkgname=gimp pkgver=2.6.11 pkgrel=7 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 autoconf automake libtool" install= subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="ftp://ftp.$pkgname.org/pub/$pkgname/v2.6/$pkgname-$pkgver.tar.bz2 gimp-libpng1.5-compat.patch gimp-curl-fix.patch cve-2011-2896.patch gimp-poppler-0.18.patch gimp-2.6.11-underlinking.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 libtoolize --force || return 1 aclocal -I m4macros && autoconf && automake || return 1 } 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="bb2939fe13e54fc7255cef5d097bb5dd gimp-2.6.11.tar.bz2 7dfc4006676fdea887f1883ccc6c7772 gimp-libpng1.5-compat.patch 678010acec374e06140e65f7de24ff69 gimp-curl-fix.patch c317eae455c808b8434e9b600afee648 cve-2011-2896.patch bfc73f80e911ed7a7d500d80973469f1 gimp-poppler-0.18.patch b1fde5d284544440ae2c556b380800ab gimp-2.6.11-underlinking.patch"