1 # Maintainer: Gilrain <pierre.buard+aur gmail com>
5 pkgdesc='A framework for custom processing of PO files.'
8 url='http://techbase.kde.org/Localization/Tools/Pology'
9 depends=('python2' 'gettext')
10 makedepends=('subversion' 'cmake' 'docbook-xsl' 'epydoc')
11 optdepends=('python2-pyenchant: to spell check'
12 'aspell-lang: a dictionary in your language'
13 'hunspell-lang: a dictionary in your language'
14 'languagetool: used by the check-grammar sieve'
15 'dbus-python: for communication with Lokalize'
16 'apertium: used by the pomtrans script'
17 'git: for processing files under version control'
18 'subversion: for processing files under version control')
19 conflicts=('pology-svn')
20 source=(http://pology.nedohodnik.net/release/${pkgname}-${pkgver}.tar.bz2)
21 md5sums=('85878e927e400545b4e2ca1128255188')
25 cd ${srcdir}/${pkgname}-${pkgver}
27 sed -i -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' $(find ${srcdir} -name '*.py')
29 mkdir -p build && cd build
30 cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DDOCBOOK_XSL_DIR=/usr/share/xml/docbook/xsl-stylesheets-1.76.1/
35 cd ${srcdir}/${pkgname}-${pkgver}/build
36 make PREFIX=/usr DESTDIR="${pkgdir}" install
38 install -d ${pkgdir}/etc/bash_completion.d
39 ln -s ${pkgdir}/usr/share/pology/completion/bash/pology ${pkgdir}/etc/bash_completion.d/pology