PKGBUILDs/extra/gimp/PKGBUILD
2009-10-09 21:23:22 -05:00

46 lines
2 KiB
Bash

# $Id: PKGBUILD 49448 2009-08-08 08:15:22Z eric $
# Maintainer: tobias <tobias@archlinux.org>
pkgname=gimp
pkgver=2.6.6
pkgrel=3
pkgdesc="GNU Image Manipulation Program"
arch=('i686' 'x86_64')
url="http://www.gimp.org/"
license=('GPL')
depends=('gtk2>=2.14.4' 'lcms>=1.17' 'libxpm>=3.5.7' 'libwmf>=0.2.8.4'
'libxmu>=1.0.4' 'librsvg>=2.22.3' 'libmng>=1.0.10' 'dbus-glib>=0.76'
'libexif>=0.6.16' 'pygtk>=2.13.0' 'desktop-file-utils' 'gegl>=0.0.22'
'curl')
makedepends=('gutenprint>=5.0.2' 'intltool>=0.35.5' 'libwebkit'
'gnome-python>=2.16.2' 'poppler-glib>=0.10.0' 'pkgconfig>=0.21'
'alsa-lib>=1.0.16' 'libgnomeui>=2.22.1')
optdepends=('gutenprint: for sophisticated printing only as gimp has built-in cups print support'
'libwebkit: for the help browser'
'poppler-glib: for pdf support'
'hal: for Linux input event controller module'
'alsa-lib: for MIDI event controller module')
options=('!libtool' '!makeflags')
conflicts=('gimp-devel')
install=gimp.install
source=(ftp://ftp.gimp.org/pub/gimp/v${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
linux.gpl gimp-2.6.6-help-browser-webkit.patch)
md5sums=('23d880dd09cd62c936ed04666a53f8e4' 'bb27bc214261d36484093e857f015f38'\
'ba425a9108d8bf70b83da867a9d0c5d6')
sha1sums=('71aec5cd671a2431daa91dea91abb6d3822a896b' '110ce9798173b19a662d086ed7b882b4729f06cf'\
'399a581cbf700e1613e080d91b7b2cccfdfea9da')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -p1 < ../gimp-2.6.6-help-browser-webkit.patch || return 1
./configure --prefix=/usr --sysconfdir=/etc \
--enable-mp --enable-gimp-console --enable-gimp-remote \
--disable-devel-docs --enable-python --without-gvfs \
--without-gnomevfs --with-gif-compression=lzw --without-aa || return 1
make || return 1
make DESTDIR=${pkgdir} install-strip || return 1
install -Dm644 ${srcdir}/linux.gpl \
${pkgdir}/usr/share/gimp/2.0/palettes/Linux.gpl || return 1
cd ${pkgdir}/usr/share/man/man1
ln -sf gimp-console-2.6.1.gz gimp-console.1
}