updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / pology / PKGBUILD
blobdfdec1d064bd6b34b38c2118ab48216ba0c6f078
1 # Maintainer: Gilrain <pierre.buard+aur gmail com>
2 pkgname=pology
3 pkgver=0.10
4 pkgrel=2
5 pkgdesc='A framework for custom processing of PO files.'
6 arch=('any')
7 license=('GPL3')
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')
22 options=(!makeflags)
24 build() {
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/
31   make PREFIX=/usr
34 package() {
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