1 # Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>
6 pkgdesc="LyXBlogger allows you to post to your WordPress blog right from LyX"
7 url="http://www.nongnu.org/lyxblogger"
10 depends=('python2>=2.4' 'elyxer')
16 source=("http://nongnu.uib.no/$pkgname/LyXBlogger_$pkgver.tar.gz")
17 md5sums=('f4004817a68723720e42e655a8d77617')
19 cd $startdir/src/LyXBlogger_$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')
28 # elyxer is a dependency, so use setup-no-elyxer:
29 python2 setup-no-elyxer.py install --prefix=/usr --root="$pkgdir" || return 1