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