blob: b89524ce568c00a77f9a328335797b8a757a8d2d (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: David Scholl <djscholl at gmail dot com>
pkgname=sofastats
pkgver=1.5.6
pkgrel=2
pkgdesc="Statistics Open For All"
arch=('any')
url="http://www.sofastatistics.com/"
license=('custom')
depends=('bash-completion' 'ghostscript'
'imagemagick' 'python-mysqlclient' 'pdftk'
'python' 'wkhtmltopdf' 'python-wxpython'
'python-matplotlib' 'python-numpy' 'python-psycopg2'
'python-requests' 'python-wxpython')
makedepends=('python-distribute')
replaces=('sofa')
source=("http://downloads.sourceforge.net/project/sofastatistics/sofastatistics/$pkgver/"$pkgname"-"$pkgver".tar.gz" "setup.py" "sofastats.desktop")
md5sums=('300ff3613e90e9a89366c763f96b32af'
'3372a43d8c291d883bd0ad2b38f7e85d'
'f267ddd0371a29a3466bec780eda3fd6')
build() {
cd $srcdir/$pkgname-$pkgver
cp $srcdir/setup.py ./
touch sofastats_src/{__init__.py,dbe_plugins/__init__.py}
python setup.py build
}
package() {
cd $srcdir/$pkgname-$pkgver
python setup.py install --root=$pkgdir
echo "#!/bin/bash" > sofastats
echo "/usr/bin/env python "\
"/usr/lib/python$(pacman -Q python | colrm 1 8 | colrm 4)/site-packages/sofastats/start.py "\
>> sofastats
chmod a+x sofastats
install -D sofastats $pkgdir/usr/bin/sofastats
install -D debian/copyright $pkgdir/usr/share/licenses/$pkgname/copyright
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
|