1 # Contributor: tocer <tocer.deng@gmail.com>
6 pkgdesc="a WordPress command-line weblog"
7 url="http://srackham.wordpress.com/blogpost1"
10 depends=('asciidoc' 'python2')
11 makedepends=("mercurial")
12 conflicts=("blogpost")
13 install=blogpost.install
14 _hgroot="http://hg.sharesource.org"
21 if [ -d ${_hgrepo} ]; then
25 hg clone ${_hgroot}/${_hgrepo}
29 msg "Starting build process."
30 DSTDIR=$pkgdir/usr/share/blogpost
31 install -Dm0755 blogpost.py $DSTDIR/blogpost.py
32 install -Dm0644 asciidocapi.py $DSTDIR/asciidocapi.py
33 install -Dm0644 wordpresslib.py $DSTDIR/wordpresslib.py
34 install -Dm0644 conf/blogpost_example.conf $DSTDIR/blogpost_example.conf
37 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $FILE
41 msg "Generating manpage."
42 a2x -f manpage doc/blogpost.1.txt
44 install -dm0755 $pkgdir/usr/bin
45 ln -s /usr/share/blogpost/blogpost.py $pkgdir/usr/bin/blogpost