updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / sofastats / PKGBUILD
blob69a399fd3af44d36e5a1212c970948ddd222a7d3
1 # Maintainer: David Scholl <djscholl at gmail dot com>
3 pkgname=sofastats
4 pkgver=1.1.0
5 pkgrel=1
6 pkgdesc="Statistics Open For All"
7 arch=('any')
8 url="http://www.sofastatistics.com/"
9 license=('custom')
10 depends=('wxpython' 'python2-matplotlib' 'pygresql' 'python-pysqlite' 'mysql-python' 'pywebkitgtk' 'hspell')
11 makedepends=('python2-distribute')
12 replaces=('sofa')
13 source=("http://downloads.sourceforge.net/sofastatistics/$pkgname-$pkgver.tar.gz" "setup.py")
14 md5sums=('5f62e42b9dabf64229c2889999e8087e'
15          '45bd7767784315c8a1f52c87a33b812b')
16 build() {
17   cd $srcdir/$pkgname-$pkgver
18   cp $srcdir/setup.py ./ || return 1
19   touch sofa_main/__init__.py
20   python2 setup.py build || return 1
21   python2 setup.py install --root=$pkgdir || return 1
22   echo "#!/bin/bash" > sofastats || return 1
23   echo "/usr/bin/env python2 "\
24   "/usr/lib/python$(pacman -Q python2 | colrm 1 8 | colrm 4)/site-packages/sofastats/start.py "\
25   >> sofastats || return 1
26   chmod a+x sofastats || return 1
27   install -D sofastats $pkgdir/usr/bin/sofastats || return 1 
28   install -D copyright $pkgdir/usr/share/licenses/$pkgname/copyright || return 1