# Maintainer: Natanael Copa pkgname=gimp pkgver=2.8.6 pkgrel=1 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 libjpeg-turbo-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 " _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 \ --build=$CBUILD \ --host=$CHOST \ --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="12b3fdf33d1f07ae79b412a9e38b9693 gimp-2.8.6.tar.bz2" sha256sums="215865b0ff4534bbced551995ae3093ede1918246ead914984603a5c1a5be845 gimp-2.8.6.tar.bz2" sha512sums="2bed2f3521e01355fd0e820024a54f40ad215c4167d3dbbfee0730b67e4d8edb161b493c75a02bd9439dced25331b879fed7b6737f84b975003feee5c1fcf45f gimp-2.8.6.tar.bz2"