updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / elyxer / PKGBUILD
blob04543da81697152ba6e98980ae1a356fb2313726
1 # Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>
3 pkgname=elyxer  
4 pkgver=1.2.1
5 pkgrel=1
6 pkgdesc="eLyXer is a LyX to HTML converter with a clear focus on flexibility and elegant output"
7 url="http://elyxer.nongnu.org/"
8 arch=('i686' 'x86_64')
9 license=('GPL3')
10 depends=('python2>=2.3.4')
11 makedepends=()
12 conflicts=()
13 replaces=()
14 backup=()
15 install=
16 source=("http://download.savannah.gnu.org/releases/elyxer/$pkgname-$pkgver.tar.gz")
17 md5sums=('8da8695779acabb069b70042a7c7e162')
18 build() {
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