updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / python2-pyephem / PKGBUILD
blob30eda5018435f735646d48a44b1af094cc70994e
1 # Maintainer: masutu Subric <masutu dot arch at gmail dot com>
2 # Contributor: Michal Marek <reqamst at gmail dot com>
4 pkgname=python2-pyephem
5 pkgver=3.7.5.1
6 pkgrel=1
7 pkgdesc="PyEphem provides scientific-grade astronomical computations"
8 arch=('i686' 'x86_64')
9 url="http://rhodesmill.org/pyephem/"
10 license=('GPL' 'LGPL')
11 depends=('python2')
12 options=(!emptydirs)
13 source=(http://pypi.python.org/packages/source/p/pyephem/pyephem-$pkgver.tar.gz)
14 md5sums=('4b08475dee615e5dfdc6fa7f66086944')
16 package() {
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
21         done
22         python2 setup.py install --root=$pkgdir/ --optimize=1
25 # vim:set ts=2 sw=2 et: