1 # Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>
6 pkgdesc="eLyXer is a LyX to HTML converter with a clear focus on flexibility and elegant output"
7 url="http://elyxer.nongnu.org/"
10 depends=('python2>=2.3.4')
16 source=("http://download.savannah.gnu.org/releases/elyxer/$pkgname-$pkgver.tar.gz")
17 md5sums=('8da8695779acabb069b70042a7c7e162')
19 cd $startdir/src/$pkgname-$pkgver
21 # From http://allanmcrae.com/2010/10/big-python-transition-in-arch-linux/
22 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
23 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
24 $(find . -name '*.py')
26 # Might not be needed, but can't hurt:
27 sed -i -e "s|self.writer.writeline('#! /usr/bin/env python')|self.writer.writeline('#! /usr/bin/env python2')|" \
28 src/elyxer/conf/fileconfig.py
30 python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1