1 # Maintainer: foxbunny <bg.branko@gmail.com>
2 # Contributed fixes from: giniu <gginiu@gmail.com>
3 # Based on PKGBUILD by: tobias <tobias@archlinux.org>
12 pkgdesc="Gimp ${_gimp_ver} with added assets, scripts, and patches for digital painting."
13 arch=('i686' 'x86_64')
14 url="http://codaset.com/foxbunny/gimp-studio"
16 depends=('gtk2>=2.14.4' 'lcms>=1.17' 'libxpm>=3.5.7' 'libwmf>=0.2.8.4'
17 'libxmu>=1.0.4' 'librsvg>=2.22.3' 'libmng>=1.0.10' 'dbus-glib>=0.76'
18 'libexif>=0.6.16' 'pygtk>=2.13.0' 'desktop-file-utils' 'gegl>=0.1.0'
20 makedepends=('gutenprint>=5.0.2' 'intltool>=0.35.5' 'libwebkit'
21 'gnome-python>=2.16.2' 'poppler-glib>=0.10.0' 'pkgconfig>=0.21'
22 'alsa-lib>=1.0.16' 'libgnomeui>=2.22.1', 'p7zip' 'unzip')
23 optdepends=('gutenprint: for sophisticated printing only as gimp has built-in cups print support'
24 'libwebkit: for the help browser'
25 'poppler-glib: for pdf support'
26 'hal: for Linux input event controller module'
27 'alsa-lib: for MIDI event controller module'
28 'adobe-icc: for soft-proofing'
29 'eci-icc: for soft-proofing'
30 'srgb-icc: for standardizing RGB workflow'
31 'gimp-plugin-separate+: for CMYK output')
32 options=('!libtool' '!makeflags')
33 provides=("gimp=${_gimp_ver}")
34 replaces=('gimp-painter')
35 conflicts=('gimp-devel' 'gimp' 'gimp-git')
36 install=gimp-studio.install
37 source=(ftp://ftp.gimp.org/pub/gimp/v2.6/gimp-${_gimp_ver}.tar.bz2
38 gimp-painter--${_painter_ver}.diff
39 gimp-painter--giniu-fix-20090715.diff
40 gimp-painter--giniu-fix-20100205.diff
43 gimp-painter--giniu-about-fix-20100208.patch
44 gimp-painter--giniu-preset-fix-20100208.patch
45 gimp-splash-giniu-fix-20100209.diff
46 http://gimp-studio.googlecode.com/files/gimp-splash.png
47 http://gimp-studio.googlecode.com/files/gimp-painter-icons.tar.gz
48 http://gimp-studio.googlecode.com/files/gimp_studio_addons_20100404.tar.bz2)
51 # Fix for crashes on 64-bit architecture
52 patch < ../gimp-painter--giniu-fix-20090715.diff || return 1
53 cd "${srcdir}"/gimp-${_gimp_ver}
55 patch -p1 < ../libpng-1.4.patch || return 1
57 patch -p0 < ../gtk-2.19.1.patch || return 1
59 patch -p1 < ../gimp-painter--${_painter_ver}.diff || return 1
60 # Gimp painter icons patch
61 patch -p0 < ../gimp-painter--giniu-fix-20100205.diff || return 1
62 for file in "${srcdir}"/gimp-painter-icons/*
64 install -Dm644 "${file}" \
65 "${srcdir}"/gimp-${_gimp_ver}/themes/Default/images/tools || return 1
67 # Gimp painter presets patch
68 patch -p0 < ../gimp-painter--giniu-preset-fix-20100208.patch || return 1
69 # Gimp studio about dialog
70 sed -e "s/PKGVER/${pkgver}/" ../gimp-painter--giniu-about-fix-20100208.patch > \
71 gimp-painter-about-ver.patch
72 patch -p0 < gimp-painter-about-ver.patch || return 1
74 sed -e "s/PKGVER/${pkgver}/;s/GIMPVER/${_gimp_ver}/;s/VERT_CORRECTION/44/" \
75 ../gimp-splash-giniu-fix-20100209.diff > gimp-splash-giniu-fix-20100209.diff
76 patch -p0 < gimp-splash-giniu-fix-20100209.diff || return 1
78 # Configure and compile
79 CFLAGS="${CFLAGS} -fno-strict-aliasing"
80 CXXFLAGS="{$CXXFLAGS} -fno-strict-aliasing"
81 ./configure --prefix=/usr --sysconfdir=/etc \
82 --enable-mp --enable-gimp-console --enable-gimp-remote \
83 --enable-python --without-gvfs --without-gnomevfs \
84 --with-gif-compression=lzw --without-aa || return 1
86 make DESTDIR="${pkgdir}" install-strip || return 1
88 ln -sf gimp-console-${pkgver%.*}.1.gz "${pkgdir}/usr/share/man/man1/gimp-console.1" || return 1
89 ln -s gimptool-2.0 "${pkgdir}/usr/bin/gimptool" || return 1
90 ln -sf gimptool-2.0.1.gz "${pkgdir}/usr/share/man/man1/gimptool.1" || return 1
92 install -m644 "${srcdir}"/gimp-splash.png \
93 "${pkgdir}"/usr/share/gimp/2.0/images/gimp-splash.png
95 msg "Copying scripts, assets, and tool presets"
98 for directory in brushes gradients palettes scripts tool-options
100 for file in ${directory}/*
102 install -Dm 644 "${file}" "${pkgdir}"/usr/share/gimp/2.0/"${file}" || return 1
106 msg "Copying plugins"
107 for file in plug-ins/*
109 install -Dm 644 "${file}" "${pkgdir}"/usr/lib/gimp/2.0/"${file}" || return 1
112 msg "Copyng startup and tool settings"
113 for file in sessionrc
115 install -Dm 644 rc/"${file}" \
116 "${pkgdir}"/etc/gimp/2.0/"${file}" || return 1
119 msg "Finished copying addons."
124 md5sums=('a4d9462c9420954824a80c9b1963f9d9'
125 'a8d289fc2e83e2bd7b4b30fc791e72c7'
126 'c6f8a00112b60d1932b304d4e062020c'
127 'c5173bb04b43bbd8563e47fb06295311'
128 '211eccab51593526e852816e647f7da4'
129 '1c1593f20d04f9578d0b14fbdcec1bbe'
130 '5ddbad9c3cc88371aeb53e9d80fea58c'
131 '5226a7097f05872ee6c375baca1f7d60'
132 '1a8e7027458b5fd2eeddbd3d83f3a057'
133 '73f5a3a58ab242601fcd9f1d7aaf7f9a'
134 'c06f8feed2827dbbdd1a0dfc6a7d17e4'
135 'cdad5f95413091cc24f49c5b156fc1c4')