# Maintainer: Gilrain pkgname=pology pkgver=0.12 pkgrel=2 pkgdesc='A framework for custom processing of PO files.' arch=('any') license=('GPL3') url='https://invent.kde.org/sdk/pology' depends=('python2' 'gettext') makedepends=('cmake' 'libxml2' 'docbook-xsl' 'epydoc' 'python2-pygments') options=(!makeflags) optdepends=('python2-dbus: to communicate with external applications' 'python2-pyenchant: spell checking functionality (needs a dictionary)' 'hunspell-lang: a spell-checking dictionary for your language(s)' 'aspell-lang: a spell-checking dictionary for your language(s)' 'ispell-lang: a spell-checking dictionary for your language(s)' 'languagetool: used by the check-grammar sieve' 'apertium: used by the pomtrans script' 'git: for processing files under version control' 'subversion: for processing files under version control') conflicts=('pology-git') changelog=changelog source=(https://invent.kde.org/sdk/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.bz2) sha256sums=('a49396eb854165f82bb22575301e890e1eead04ac86f98fff8533c486d07236a') prepare() { sed -i -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' $(find ${srcdir} -name '*.py') } build() { cd ${srcdir}/${pkgname}-v${pkgver} cmake -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd ${srcdir}/${pkgname}-v${pkgver} make DESTDIR="${pkgdir}" install install -d ${pkgdir}/usr/share/apps/katepart/syntax ln -s /usr/share/pology/syntax/kate/synder.xml ${pkgdir}/usr/share/apps/katepart/syntax/synder.xml install -d ${pkgdir}/etc/bash_completion.d ln -s /usr/share/pology/completion/bash/pology ${pkgdir}/etc/bash_completion.d/pology }