1 # Maintainer: Jon Nordby <jononor@gmail.com>
3 pkgname=ora-thumbnailer-gnome
4 _pkgname=ora-thumbnailers
7 pkgdesc="OpenRaster thumbnailer for GNOME (Nautilus)"
9 url="http://create.freedesktop.org/wiki/OpenRaster"
11 depends=('pygtk' 'gconf')
12 _sourceroot=http://www.jonnor.com/files
13 source=($_sourceroot/$_pkgname-$pkgver.tar.gz)
15 install=('ora-thumbnailer-gnome.install')
16 md5sums=('9ccf397807a00561fab5b11873a17106')
19 cd "$srcdir/$_pkgname-$pkgver"
21 install -D -m755 ora-thumbnailer.py \
22 "$pkgdir"/usr/bin/ora-thumbnailer-gnome
23 install -D -m644 gnome/ora-thumbnailer-gnome.schemas \
24 "$pkgdir"/usr/share/gconf/schemas/ora-thumbnailer-gnome.schemas
26 # Fix to use python2, not python3
27 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
28 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
29 "$pkgdir"/usr/bin/ora-thumbnailer-gnome
33 # vim:set ts=2 sw=2 et: