summaryrefslogtreecommitdiffstats
path: root/gimp-git/PKGBUILD
blob: f248c6e8736ce5fe433b72abbc049f443e83f75e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>

pkgname=gimp-git
pkgver=20100109
pkgrel=1
pkgdesc="GNU Image Manipulation Program (GIT Version)"
arch=('i686' 'x86_64')
url="http://www.gimp.org/"
license=('GPL')
depends=('gtk2>=2.10' 'lcms>=1.16' 'libxpm>=3.5.6' 'libwmf>=0.2.8' \
         'libxmu>=1.0.3' 'librsvg>=2.16.1' 'libmng>=1.0.9' 'desktop-file-utils' \
	 'libexif>=0.6.13' 'libart-lgpl>=2.3.19' 'pygtk>=2.10.4' 'dbus-glib' 'gtk-doc')
makedepends=('gutenprint>=5.0.0' 'intltool>=0.35.5' 'libgtkhtml>=2.6.3' \
	     'gnome-python>=2.16.2' 'poppler>=0.6' 'pkgconfig>=0.21' \
	     'libgnomeprintui>=2.18' 'alsa-lib>=1.0.0' 'gegl-git' 
'libtool>=1.5' 'autoconf>=2.54' 'automake>=1.9.6' 'libxslt' 'libwebkit' 
'pango' 'gettext' 'git')
options=('!libtool' '!makeflags')
provides=('gimp')
conflicts=('gimp' 'gimp-devel')
source=('gimp-git.install' 'linux.gpl')
install=('gimp-git.install')
md5sums=('c49a84c5333fbe0b49b49911a3da9d20'
         'bb27bc214261d36484093e857f015f38')

_gitroot=('git://git.gnome.org/gimp')
_gitname=('gimp')

build() {
  cd $startdir/src
  msg "Connecting to gnome.org git server...."
  rm  -rf $startdir/src/$_gitname-build
  
  if [[ -d $_gitname ]]; then
   cd $_gitname || return 1
#   git pull origin || return 1
#    else
#   git clone $_gitroot $_gitname || return 1
     fi
  msg " checkout done."

    msg "Starting make..."
    cd "$srcdir"
    rm -r "$srcdir/$_gitname-build"
    cp -r $srcdir/$_gitname $_gitname-build
    cd $_gitname-build
	
	./autogen.sh --prefix=/usr --sysconfdir=/etc \
	  --enable-mp --enable-gimp-console --disable-devel-docs \
	  --enable-python --with-gif-compression=lzw \
	  --without-aa
	make || return 1
	make DESTDIR=${startdir}/pkg install-strip || return 1

	install -Dm644 ${startdir}/src/linux.gpl \
		${startdir}/pkg/usr/share/gimp/2.0/palettes/Linux.gpl

	#ln -s gimp-2.5 ${startdir}/pkg/usr/bin/gimp
	#ln -s gimp-console-2.5 ${startdir}/pkg/usr/bin/gimp-console
	#ln -s gimp-remote-2.5 ${startdir}/pkg/usr/bin/gimp-remote     
}