updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / xgngeo / PKGBUILD
blob04b554f2acfceca845b59e80fec999e19eade7fc
1 # Maintainer: josephgbr <rafael.f.f1@gmail.com> 
2 # Contributor: Janitux <janitux <at> gmail.com>
4 pkgname=xgngeo
5 pkgver=16
6 pkgrel=5
7 pkgdesc="A frontend for Gngeo in GTK"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 url="http://xgngeo.choplair.org/"
11 depends=('pygtk' 'python2' 'gngeo')
12 source=(http://downloads.sourceforge.net/${pkgname}/XGngeo-${pkgver}_final.tar.bz2
13                 pt_BR_xgngeo.po
14                 fix-install-path.patch)
15 md5sums=('741d8099b6560b1f82518dbff90bd08b'
16          '2727f129860d0d6f120e24ccc95a3a9a'
17          'dda2a9801cf886fe1802fe7023d543d9')
19 build() {
20   cd "${srcdir}/XGngeo-${pkgver}"
22   # Use python2, instead of python3
23   sed -e 's#env python$#env python2#' -i setup.py
24   sed -e 's#env python$#env python2#' -i data/py/__init__.py
25   sed -e 's#env python$#env python2#' -i data/script/xgngeo_startup.py
27   # Fix portuguese(BR) translation - my contribution
28   install "${srcdir}/pt_BR_xgngeo.po" data/locale/pt_BR/LC_MESSAGES/xgngeo.po
30   # Fix path to comply with Archlinux directory structure
31   patch -p1 -i "${srcdir}/fix-install-path.patch"
33   ./setup.py install --prefix="${pkgdir}/usr"