# Maintainer: Natanael Copa pkgname=gimp pkgver=2.8.14 pkgrel=0 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-dev babl-dev" install= subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://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="233c948203383fa078434cc3f8f925cb gimp-2.8.14.tar.bz2" sha256sums="d82a958641c9c752d68e35f65840925c08e314cea90222ad845892a40e05b22d gimp-2.8.14.tar.bz2" sha512sums="533f6b931624d36525cb2f3fbc27fe27565d761bbe26873bb5445c06c01523c044d1814363a8cd76b6e381440db4c6e302b0d3f7a9e5aac7f60072770552f1ba gimp-2.8.14.tar.bz2"