updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ora-thumbnailer-gnome / PKGBUILD
blobea5c8a045bc2bc27a4b03442d547ff3f56414f69
1 # Maintainer: Jon Nordby <jononor@gmail.com>
3 pkgname=ora-thumbnailer-gnome
4 _pkgname=ora-thumbnailers
5 pkgver=0.1.0
6 pkgrel=1
7 pkgdesc="OpenRaster thumbnailer for GNOME (Nautilus)"
8 arch=('any')
9 url="http://create.freedesktop.org/wiki/OpenRaster"
10 license=('LGPL')
11 depends=('pygtk' 'gconf')
12 _sourceroot=http://www.jonnor.com/files
13 source=($_sourceroot/$_pkgname-$pkgver.tar.gz)
14 noextract=()
15 install=('ora-thumbnailer-gnome.install')
16 md5sums=('9ccf397807a00561fab5b11873a17106')
18 package() {
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: