summaryrefslogtreecommitdiff
path: root/community/mezogis/PKGBUILD
blob: 83ce2c160f998a651e048485838e37d5959065d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 67954 2012-03-16 12:03:52Z giovanni $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=mezogis
pkgver=0.1.5
pkgrel=5
pkgdesc="A GIS application to query and analyse spatial data"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.mezogis.org"
license=('GPL')
depends=('pygtk' 'python-geotypes' 'postgis')
source=("http://www.mezogis.org/files/mezogis-$pkgver.tar.gz")
md5sums=('1f886b849109a1a1bd3e165353b82368')

package() {
  cd $srcdir/mezogis-$pkgver

  # python2 fix
  for file in $(find . -name '*.py' -print); do
    sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
    sed -i 's_#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
  done

  python2 setup.py install --root=$pkgdir
}