updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / virtaal / PKGBUILD
blobe2956843e66ccd92affe2b7c11024a2d019203ac
1 # Maintainer: Atilla ÖNTAŞ <tarakbumba@gmail.com>
2 # Contributor: Leonardo Ferreira Fontenelle <leonardof@gnome.org>
4 pkgname=virtaal
5 pkgver=0.7.1
6 pkgrel=2
7 pkgdesc="A tool to create program translations."
8 url="http://translate.sourceforge.net/wiki/virtaal/index"
9 arch=('any')
10 license=('GPL')
11 depends=('python2>2.5' 'gtk2>2.18' 'pygtk>2.12' 'python-lxml>2.3.2'  'desktop-file-utils' 
12     'translate-toolkit>1.9.0-2' 'python-simplejson' 'python-pycurl' 'python-pysqlite' 'hicolor-icon-theme'
14 optdepends=('python2-gtkspell: to enable spell checking'
15     'python2-pyenchant: to enable spell checking'
16     'iso-codes: to display translated language names'
17     'libtranslate: to enable machine translation'
18     'psyco2-svn: to speedup the application'
19     'python-levenshtein: to speed up Levenshtein distance measures'
20     'psycopg2: for TinyTM plugin'
22 install=virtaal.install
23 source=("http://downloads.sourceforge.net/translate/$pkgname-$pkgver.tar.bz2")
24 md5sums=('e931c5b477da4bb44e00c24c2247a1ad')
26 build() {
27     cd $srcdir/$pkgname-$pkgver
28     sed -i -e "s|#![ ]*/usr/bin/python|#!/usr/bin/python2|" \
29         -e "s|#![ ]*/usr/bin/env python|#!/usr/bin/env python2|" \
30         $(find $srcdir -name "*.py")
31     PYTHON=python2 ./setup.py build
32     PYTHON=python2 ./setup.py install --root=$pkgdir