1 # Contributor: Nuno Araujo <nuno.araujo at russo79.com>
2 pkgname=gimp-plugin-file-ora-git
5 pkgdesc="OpenRaster support for GIMP 2.6+"
7 url="http://create.freedesktop.org/wiki/OpenRaster"
9 depends=('gimp>=2.6.0' 'gimp<=2.7.1' 'python2')
11 provides=(gimp-plugin-file-ora)
12 conflicts=(gimp-plugin-file-ora)
14 _gitroot="git://gitorious.org/openraster/gimp-plugin-file-ora.git"
15 _gitname="gimp-plugin-file-ora"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 cd "$srcdir/$_gitname"
32 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' file-ora.py
36 cd "$srcdir/$_gitname"
37 install -m 775 file-ora.py -D $pkgdir/usr/lib/gimp/2.0/plug-ins/file-ora.py