updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / lyxblogger / PKGBUILD
blob0099986f16e194702fe28d6c6d7071a13f9ab0ba
1 # Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
2 # Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>
3 pkgname=lyxblogger
4 pkgver=0.37
5 pkgrel=2
6 pkgdesc="LyXBlogger allows you to post to your WordPress blog right from LyX"
7 url="http://www.nongnu.org/lyxblogger"
8 arch=('i686' 'x86_64')
9 license=('GPL3')
10 depends=('python2>=2.4' 'elyxer')
11 makedepends=()
12 conflicts=()
13 replaces=()
14 backup=()
15 install=
16 source=("http://nongnu.uib.no/$pkgname/LyXBlogger_$pkgver.tar.gz")
17 md5sums=('f4004817a68723720e42e655a8d77617')
18 build() {
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')
26   cd INSTALL/
28   # elyxer is a dependency, so use setup-no-elyxer:
29   python2 setup-no-elyxer.py install --prefix=/usr --root="$pkgdir" || return 1