1 # Maintainer: masutu Subric <masutu dot arch at gmail dot com>
2 # Contributor: Michal Marek <reqamst at gmail dot com>
4 pkgname=python2-pyephem
7 pkgdesc="PyEphem provides scientific-grade astronomical computations"
9 url="http://rhodesmill.org/pyephem/"
10 license=('GPL' 'LGPL')
13 source=(http://pypi.python.org/packages/source/p/pyephem/pyephem-$pkgver.tar.gz)
14 md5sums=('4b08475dee615e5dfdc6fa7f66086944')
17 cd "$srcdir/pyephem-$pkgver"
18 for file in $(find . -name '*.py' -print); do
19 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
20 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
22 python2 setup.py install --root=$pkgdir/ --optimize=1
25 # vim:set ts=2 sw=2 et: