updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gimp-git / PKGBUILD
blobd2a1dc8c3fecbc170c20961485716514d55dbe4a
1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
3 pkgname=gimp-git
4 pkgver=20120120
5 pkgrel=1
6 pkgdesc="GNU Image Manipulation Program (GIT Version)"
7 arch=('i686' 'x86_64')
8 url="http://www.gimp.org/"
9 license=('GPL')
10 depends=('gtk2>=2.24' 'lcms>=1.16' 'libxpm>=3.5.6' 'libwmf>=0.2.8' \
11          'libxmu>=1.0.3' 'librsvg>=2.16.1' 'libmng>=1.0.9' 'desktop-file-utils' \
12          'libexif>=0.6.13' 'libart-lgpl>=2.3.19' 'pygtk>=2.10.4' 'dbus-glib' 'gtk-doc' 'gegl-git' 'babl-git')
13 makedepends=('gutenprint>=5.0.0' 'intltool>=0.35.5' 'libgtkhtml>=2.6.3' \
14              'gnome-python>=2.16.2' 'poppler>=0.6' 'pkgconfig>=0.21' \
15              'libgnomeprintui>=2.18' 'alsa-lib>=1.0.0' 'libtool>=1.5' 'autoconf>=2.54' 'automake>=1.9.6' 'libxslt' 'libwebkit' 
16 'pango' 'gettext' 'git')
17 options=('!libtool' '!makeflags')
18 provides=('gimp')
19 conflicts=('gimp' 'gimp-devel')
20 source=('gimp-git.install' 'linux.gpl')
21 install='gimp-git.install'
22 md5sums=('c49a84c5333fbe0b49b49911a3da9d20'
23          'bb27bc214261d36484093e857f015f38')
25 _gitroot=('git://git.gnome.org/gimp')
26 _gitname=('gimp')
28 build() {
29   cd $startdir/src
30   msg "Connecting to gnome.org git server...."
31   [ ! -d "$srcdir/$_gitname-build" ] || rm -rf "$srcdir/$_gitname-build"
32   
33   if [[ -d $_gitname ]]; then
34    cd $_gitname || return 1
35    git pull origin || return 1
36     else
37    git clone $_gitroot $_gitname || return 1
38      fi
39   msg " checkout done."
41     msg "Starting make..."
42     cd "$srcdir"
43     #rm -r "$srcdir/$_gitname-build"
44     cp -r $srcdir/$_gitname $_gitname-build
45     cd $_gitname-build
46     
47     export PYTHON="/usr/bin/python2"
48         
49         ./autogen.sh --prefix=/usr --sysconfdir=/etc \
50           --enable-mp --enable-gimp-console --disable-devel-docs \
51           --enable-python --with-gif-compression=lzw \
52           --without-aa
53         make || return 1
54         make DESTDIR=${pkgdir} install-strip || return 1
55         sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "${pkgdir}"/usr/lib/gimp/2.0/plug-ins/*.py
57         install -Dm644 ${srcdir}/linux.gpl \
58                 ${pkgdir}/usr/share/gimp/2.0/palettes/Linux.gpl
60         #ln -s gimp-2.5 ${pkgdir}/usr/bin/gimp
61         #ln -s gimp-console-2.5 ${pkgdir}/usr/bin/gimp-console
62         #ln -s gimp-remote-2.5 ${pkgdir}/usr/bin/gimp-remote