1 # Maintainer: hiroshi yui <hiroshiyui@gmail.com>
2 # Based on PKGBUILD by: tobias <tobias@archlinux.org>
7 pkgdesc="The Gimp with 'Gimp Paint Studio' and 'gimp-painter-' assets. See http://code.google.com/p/gps-gimp-paint-studio/ & http://sourceforge.jp/projects/gimp-painter/ for details."
9 url="http://aur.archlinux.org/packages.php?ID=31700"
11 depends=('gtk2>=2.24.1' 'lcms>=1.19' 'libxpm>=3.5.9' 'libwmf>=0.2.8.4'
12 'libxmu>=1.1.0' 'librsvg>=2.34.0' 'libmng>=1.0.10' 'dbus-glib>=0.92'
13 'libexif>=0.6.20' 'python2>=2.7.1' 'pygtk>=2.24.0' 'desktop-file-utils' 'gegl>=0.1.6'
15 makedepends=('gutenprint>=5.2.7' 'intltool>=0.41.1' 'libwebkit'
16 'gnome-python>=2.28.1' 'poppler-glib>=0.16.4' 'pkg-config>=0.25'
17 'alsa-lib>=1.0.24' 'libgnomeui>=2.24', 'unzip')
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 provides=('gimp=2.6.11')
25 conflicts=('gimp-devel', 'gimp', 'gimp-git')
27 source=(ftp://ftp.gimp.org/pub/gimp/v${pkgver%.*}/gimp-${pkgver}.tar.bz2
28 http://gps-gimp-paint-studio.googlecode.com/files/GPS%201_5_final%20release.zip
30 gimp-painter--20100903.diff)
32 sha256sums=('9b6d08d0803b3912ea596d1b77b9c21ee13778c23388a225c004b8c1587cb0a1'
33 'c3ecf5edc0250e50dd9b2b64d9bfa0819ae323629e9c2d4b826be8efdfcb240f'
34 '1003bbf5fc292d0d63be44562f46506f7b2ca5729770da9d38d3bb2e8a2f36b3'
35 '10bd02637bb0fbb15e6390b7b783ea67977600879206a0407ed4140f7f95b4d5')
38 export PYTHON='/usr/bin/python2'
39 cd ${srcdir}/gimp-${pkgver}
40 patch -p1 < ../gimp-painter--20100903.diff || return 1
41 ./configure --prefix=/usr --sysconfdir=/etc \
42 --enable-mp --enable-gimp-console --enable-gimp-remote \
44 --with-gif-compression=lzw || return 1
45 sed -i 's/png_set_gray_1_2_4_to_8/png_set_expand_gray_1_2_4_to_8/g' plug-ins/file-ico/ico-load.c || return 1
47 make DESTDIR=${pkgdir} install-strip || return 1
49 msg "Extracting and copying Gimp Paint Studio (GPS)"
52 unzip GPS%201_5_final%20release.zip -d GPS\ 1.5 || return 1
56 for directory in brushes gradients palettes tool-options
59 for file in ${srcdir}/GPS\ 1.5/${directory}/*
61 install -Dm 644 "${file}" ${pkgdir}/usr/share/gimp/2.0/${directory} || return 1
66 for file in sessionrc toolrc
68 install -Dm 644 "${srcdir}/GPS 1.5/${file}" \
69 ${pkgdir}/etc/gimp/2.0/${file} || return 1
73 msg "Finished copying GPS, continuing with packaging..."
77 install -Dm644 ${srcdir}/linux.gpl \
78 ${pkgdir}/usr/share/gimp/2.0/palettes/Linux.gpl || return 1
79 cd ${pkgdir}/usr/share/man/man1
80 ln -sf gimp-console-2.6.1.gz gimp-console.1