Created
May 31, 2018 16:39
-
-
Save FFY00/59955373632f0cdc6e4e00c5be724fd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Filipe Laíns (FFY00) <[email protected]> | |
# Contributor: Ian Huang <[email protected]> | |
# Contributor: Iru Cai <[email protected]> | |
# Contributor: Alexander Hunziker <[email protected]> | |
# Contributor: Alessio Biancalana <[email protected]> | |
pkgname=gimp-git | |
epoch=1 | |
pkgver=2.10.2.601.g0ff95b66b7 | |
pkgrel=1 | |
pkgdesc="GNU Image Manipulation Program" | |
arch=('i686' 'x86_64') | |
url="http://www.gimp.org" | |
license=('GPL' 'LGPL') | |
depends=( | |
'pygtk' 'lcms2>=2.2' 'libwmf>=0.2.8' | |
'libgexiv2' 'librsvg>=2.16.1' 'desktop-file-utils' | |
'libexif>=0.6.15' 'libart-lgpl>=2.3.19' 'dbus-glib' 'gtk-doc' | |
'poppler-glib' 'poppler-data' 'openexr>=1.6.1' 'mypaint-brushes>=1.3.0' | |
'babl>=0.1.50' 'gegl-git>0.4.0' 'icu' 'enchant' | |
) | |
makedepends=( | |
'git' 'gutenprint>=5.0.0' 'intltool>=0.40.1' | |
'gnome-python>=2.16.2' 'alsa-lib>=1.0.0' | |
'libxslt' 'glib-networking' | |
) | |
optdepends=( | |
'gutenprint: for sophisticated printing only as gimp has built-in cups print support' | |
'alsa-lib: for MIDI event controller module' | |
'curl: for URI support' | |
'ghostscript: for postscript support' | |
) | |
options=('!libtool') | |
provides=('gimp-git') | |
conflicts=('gimp-gtk3-git') | |
source=( | |
git://git.gnome.org/gimp | |
linux.gpl | |
) | |
sha256sums=( | |
'SKIP' | |
'1003bbf5fc292d0d63be44562f46506f7b2ca5729770da9d38d3bb2e8a2f36b3' | |
) | |
_gitname=gimp | |
pkgver() { | |
cd $_gitname | |
git describe --always | sed -e 's/GIMP_//' -e 's/[_-]/./g' | |
} | |
build() { | |
cd "$srcdir/$_gitname" | |
if [ -f /usr/lib/pkgconfig/libmypaint-1.3.pc ]; then | |
sed -i 's/libmypaint /libmypaint-1.3 /g' configure.ac | |
fi | |
INSTALL_PREFIX=/opt/$pkgname | |
export LD_LIBRARY_PATH=$INSTALL_PREFIX/lib:/usr/lib:$LD_LIBRARY_PATH | |
PYTHON=/usr/bin/python2 ./autogen.sh \ | |
--prefix=$INSTALL_PREFIX --sysconfdir=/etc \ | |
--enable-mp --enable-gimp-console --enable-python --without-aa | |
PYTHONPATH=/usr/share/glib-2.0:$PYTHONPATH make | |
} | |
package() { | |
cd $srcdir/$_gitname | |
make DESTDIR=$pkgdir install | |
# sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "${pkgdir}"/usr/lib/gimp/2.0/plug-ins/*.py | |
install -D -m664 $srcdir/linux.gpl $pkgdir/$HOME/gimp-git/usr/share/gimp/2.0/palettes/Linux.gpl | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment