updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / gimp-plugin-file-ora-git / PKGBUILD
blob4f2c8de540a2bb45bd27831cf88bb1cf3d5f792e
1 # Contributor: Nuno Araujo <nuno.araujo at russo79.com>
2 pkgname=gimp-plugin-file-ora-git
3 pkgver=20110927
4 pkgrel=1
5 pkgdesc="OpenRaster support for GIMP 2.6+"
6 arch=('x86_64')
7 url="http://create.freedesktop.org/wiki/OpenRaster"
8 license=('GPL')
9 depends=('gimp>=2.6.0' 'gimp<=2.7.1' 'python2')
10 makedepends=('git')
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"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
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
33
35 package() {
36   cd "$srcdir/$_gitname"
37   install -m 775 file-ora.py -D $pkgdir/usr/lib/gimp/2.0/plug-ins/file-ora.py