updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / retext / PKGBUILD
blob3994081524de26b5b3893e6878d149a4925da30f
1 # Maintainer:   Bartosz Chmura <chmurli@gmail.com>
2 # Contributor:  alfplayer
4 pkgname=retext
5 pkgver=2.1.2
6 pkgrel=1
7 pkgdesc="Text editor for Markdown and reStructuredText"
8 arch=('any')
9 url="http://sourceforge.net/p/retext/"
10 license=('GPL3')
11 depends=('python2'
12          'python2-qt'
13          'python-markdown'
14          'qt>=4')
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"
17         'retext.desktop')
18 options=(!strip docs)
19 md5sums=('dcd7223e7ac0f1a806973cfde60105df'
20          '82186876da0a52991d3f81324a52401d')
22 build () {
24         # Use Python 2
25         sed -i '1s/python/python2/' retext.py wpgen/wpgen.py
29 package () {
31         share_dir=${pkgdir}/usr/share
33         retext_dir=${share_dir}/${pkgname}
35         # Create directories
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/
47         # Install wpgen data
48         install -m 644 wpgen/templates/* ${share_dir}/wpgen/
50         # Install icon
51         install -m 644 icons/* ${share_dir}/icons/
53         # Install .desktop file
54         install -m 644 retext.desktop ${share_dir}/applications/