updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-orange / PKGBUILD
blob1f540764d4baaa442d1d6c3e800fe68ffb3a0e58
1 # Contributor: Blaž Tomažič <blaz.tomazic@gmail.com>
2 pkgname=python-orange
3 pkgver=20110514 #$(date +"%Y%m%d")
4 pkgver_download=2011-05-14 #$(date +"%Y-%m-%d")
5 pkgrel=1
6 pkgdesc="Open source data visualization and analysis for novice and experts. Data mining through visual programming or Python scripting."
7 arch=('i686' 'x86_64')
8 url="http://www.ailab.si/orange"
9 license=('GPL')
10 depends=('python2' 'python2-numpy' 'python-numarray' 'python-numeric' 'python2-matplotlib')
11 optdepends=('pyqwt: GUI support' 'python-networkx')
12 source=("http://www.ailab.si/orange/download/orange-source-snapshot-$pkgver_download.zip")
13 md5sums=('dc08e8b83e7e2b6cfa2614338cbd6627')
15 _extract_dir="Orange-2.0.0b"
17 build() {
18   cd "${srcdir}/${_extract_dir}"
19   python2 setup.py build || return 1
22 package() {
23   cd "${srcdir}/${_extract_dir}"
24   python2 setup.py install --root="${pkgdir}" || return 1
25   
26   sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
27          -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
28          -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
29              $(find ${pkgdir} -name '*.py')
32 # vim:set ts=2 sw=2 et: