1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
2 # Contributor: Janitux <janitux <at> gmail.com>
7 pkgdesc="A frontend for Gngeo in GTK"
10 url="http://xgngeo.choplair.org/"
11 depends=('pygtk' 'python2' 'gngeo')
12 source=(http://downloads.sourceforge.net/${pkgname}/XGngeo-${pkgver}_final.tar.bz2
14 fix-install-path.patch)
15 md5sums=('741d8099b6560b1f82518dbff90bd08b'
16 '2727f129860d0d6f120e24ccc95a3a9a'
17 'dda2a9801cf886fe1802fe7023d543d9')
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"