1 # Maintainer: Bartosz Chmura <chmurli@gmail.com>
2 # Contributor: alfplayer
7 pkgdesc="Text editor for Markdown and reStructuredText"
9 url="http://sourceforge.net/p/retext/"
15 optdepends=('python-gdata: needed if you want to use Google Docs export')
16 source=("http://sourceforge.net/projects/retext/files/ReText-${pkgver%.*}/ReText_${pkgver}.tar.gz"
19 md5sums=('dcd7223e7ac0f1a806973cfde60105df'
20 '82186876da0a52991d3f81324a52401d')
25 sed -i '1s/python/python2/' retext.py wpgen/wpgen.py
31 share_dir=${pkgdir}/usr/share
33 retext_dir=${share_dir}/${pkgname}
36 install -d -m 755 ${pkgdir}/usr/bin ${share_dir}/{wpgen,icons,mime/packages,applications,${pkgname}/{locale,doc}}
38 # Install scripts retext and wpgen
39 install -m 755 ${pkgname}.py ${pkgdir}/usr/bin/retext
40 install -m 755 wpgen/wpgen.py ${pkgdir}/usr/bin/wpgen
42 install -m 644 README ${retext_dir}/doc/
44 # Install translation files
45 install -m 644 locale/* ${retext_dir}/locale/
48 install -m 644 wpgen/templates/* ${share_dir}/wpgen/
51 install -m 644 icons/* ${share_dir}/icons/
53 # Install .desktop file
54 install -m 644 retext.desktop ${share_dir}/applications/