# Maintainer: Gilrain pkgname=pology-git commit=60730630 pkgver=git$commit pkgrel=1slint slackdesc='$pkgname (A framework for custom processing of PO files.)' license=('GPL3') url='https://invent.kde.org/sdk/pology' depends=('python2' 'gettext' 'python2-pyenchant') makedepends=('git' 'cmake' 'libxml2' 'docbook-xsl' 'epydoc' 'python2-pygments') options=(nosrcpack) optdepends=('python2-dbus: to communicate with external applications' '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' 'katepart4: for synder syntax highlighting in KDE editors' 'apertium: used by the pomtrans script' 'git: for processing files under version control' 'subversion: for processing files under version control') provides=('pology') replaces=('pology-svn') changelog=changelog sha256sums=('SKIP') prepare() { sed -i -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' $(find ${srcdir} -name '*.py') } build() { git clone https://invent.kde.org/sdk/pology.git cd pology echo "git checkout $commit" git checkout $commit mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr DDOCBOOK_XSL_DIR=/usr/share/xml/docbook/xsl-stylesheets-1.79.2 .. make make DESTDIR="$PKG" install install -d $PKG/etc/bash_completion.d ln -s /usr/share/pology/completion/bash/pology $PKG/etc/bash_completion.d/pology }