updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / gimp-light / PKGBUILD
blobdcb8c616834475d4dec935eadd367d5b5885aa0d
1 # $Id: PKGBUILD 61175 2009-12-13 02:55:17Z eric $
2 # Maintainer: Ahmed Osman <ashex@chipnick.com>
4 pkgname=gimp-light
5 pkgver=2.7.4
6 pkgrel=1
7 pkgdesc="GNU Image Manipulation Program"
8 arch=('i686' 'x86_64')
9 url="http://www.gimp.org/"
10 license=('GPL')
11 depends=('gtk2>=2.14.4' 'lcms>=1.17' 'libxpm>=3.5.7' 'libwmf>=0.2.8.4'
12          'libxmu>=1.0.4' 'librsvg>=2.22.3' 'libmng>=1.0.10' 'dbus-glib>=0.76'
13          'libexif>=0.6.16' 'pygtk>=2.13.0' 'desktop-file-utils' 'gegl>=0.1.0'
14          'curl')
15 makedepends=('gutenprint>=5.0.2' 'intltool>=0.35.5' 'libwebkit'
16              'gnome-python>=2.16.2' 'poppler-glib>=0.10.0' 'pkgconfig>=0.21'
17              'alsa-lib>=1.0.16' 'libgnomeui>=2.22.1')
18 optdepends=('gutenprint: for sophisticated printing only as gimp has built-in cups print support'
19             'libwebkit: for the help browser'
20             'poppler-glib: for pdf support'
21             'hal: for Linux input event controller module'
22             'alsa-lib: for MIDI event controller module')
23 options=('!libtool' '!makeflags')
24 conflicts=('gimp-devel')
25 provides=('gimp')
26 install=gimp.install
27 source=(ftp://ftp.gimp.org/pub/gimp/v${pkgver%.*}/gimp-${pkgver}.tar.bz2
28         linux.gpl)
29 md5sums=('bda95a29c3483b8ff458b06b1543f867' 'bb27bc214261d36484093e857f015f38')
31 build() {
32    cd "${srcdir}/gimp-${pkgver}"
33    ./configure --prefix=/usr --sysconfdir=/etc \
34         --disable-python \
35         --disable-gimp-console \
36         --without-aa \
37         --without-webkit \
38         --without-poppler \
39         --without-gvfs \
40         --without-gnomevfs \
41         --without-libcurl \
42         --without-wmf \
43         --without-lcms \
44         --without-alsa \
45         --without-linux-input \
46         --without-script-fu \
47         --without-wmf || return 1
48    make || return 1
49    make DESTDIR="${pkgdir}" install-strip || return 1
50    install -Dm644 "${srcdir}/linux.gpl" "${pkgdir}/usr/share/gimp/2.0/palettes/Linux.gpl" || return 1
52    ln -sf gimp-console-${pkgver%.*}.1.gz "${pkgdir}/usr/share/man/man1/gimp-console.1" || return 1
53    ln -s gimptool-2.0 "${pkgdir}/usr/bin/gimptool" || return 1
54    ln -sf gimptool-2.0.1.gz "${pkgdir}/usr/share/man/man1/gimptool.1" || return 1