updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / dsgui / PKGBUILD
blob043ffc4f209cd88371c3daf1a10e3990315fcff0
1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=dsgui
4 pkgver=1.6.3
5 pkgrel=1
6 pkgdesc="GUI application allowing access to a 'Databox' - an electronic communication interface endorsed by the Czech government"
7 arch=('any')
8 url="http://labs.nic.cz/page/740/dsgui/"
9 license=('GPL2')
10 depends=('dslib' 'pygtk' 'python2-sqlalchemy' 'hicolor-icon-theme')
11 makedepends=('python2-distribute')
12 install=$pkgname.install
13 source=(http://labs.nic.cz/files/labs/datove_schranky/$pkgname-$pkgver.tar.gz)
14 sha256sums=('07929b02e162a965d6a1756066e39fc2bec8fcabb3ffb8498deef1302ab1f517')
16 build() {
17   cd ${srcdir}/$pkgname-$pkgver
19 #Python2 fix
20   for file in $(find . -name '*.py' -print); do
21     sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
22     sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
23   done
25   python2 setup.py install --root=${pkgdir}