summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO37
-rw-r--r--PKGBUILD36
-rw-r--r--setup.py33
-rw-r--r--sofastats.desktop10
4 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7285f103354
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,37 @@
+# Generated by mksrcinfo v8
+# Mon Sep 12 22:32:03 UTC 2016
+pkgbase = sofastats
+ pkgdesc = Statistics Open For All
+ pkgver = 1.4.6
+ pkgrel = 2
+ url = http://www.sofastatistics.com/
+ arch = any
+ license = custom
+ makedepends = python2-distribute
+ depends = python2-xlwt
+ depends = bash-completion
+ depends = desktop-file-utils
+ depends = ghostscript
+ depends = hicolor-icon-theme
+ depends = imagemagick
+ depends = mysql-python
+ depends = pdftk-bin
+ depends = python2
+ depends = pywebkitgtk
+ depends = wkhtmltopdf
+ depends = wxpython
+ depends = python2-matplotlib
+ depends = python2-numpy
+ depends = python2-psycopg2
+ depends = python2-requests
+ depends = wxpython2.8
+ replaces = sofa
+ source = http://heanet.dl.sourceforge.net/project/sofastatistics/sofastatistics/1.4.6/sofastats-1.4.6.tar.gz
+ source = setup.py
+ source = sofastats.desktop
+ md5sums = c39880daebead5247b78b6550cb4e2c4
+ md5sums = 0d532fe665c66d8a2ff001db173bb84e
+ md5sums = f267ddd0371a29a3466bec780eda3fd6
+
+pkgname = sofastats
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f103b514806
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: David Scholl <djscholl at gmail dot com>
+
+pkgname=sofastats
+pkgver=1.4.6
+pkgrel=2
+pkgdesc="Statistics Open For All"
+arch=('any')
+url="http://www.sofastatistics.com/"
+license=('custom')
+depends=('python2-xlwt' 'bash-completion' 'desktop-file-utils' 'ghostscript' 'hicolor-icon-theme' 'imagemagick' 'mysql-python' 'pdftk-bin' 'python2' 'pywebkitgtk' 'wkhtmltopdf' 'wxpython' 'python2-matplotlib' 'python2-numpy' 'python2-psycopg2' 'python2-requests' 'wxpython2.8')
+makedepends=('python2-distribute')
+replaces=('sofa')
+source=("http://heanet.dl.sourceforge.net/project/sofastatistics/sofastatistics/$pkgver/$pkgname-$pkgver.tar.gz" "setup.py" "sofastats.desktop")
+md5sums=('c39880daebead5247b78b6550cb4e2c4'
+ '0d532fe665c66d8a2ff001db173bb84e'
+ 'f267ddd0371a29a3466bec780eda3fd6')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ cp $srcdir/setup.py ./
+ touch sofa_main/__init__.py
+ python2 setup.py build
+}
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ python2 setup.py install --root=$pkgdir
+ echo "#!/bin/bash" > sofastats
+ echo "/usr/bin/env python2 "\
+ "/usr/lib/python$(pacman -Q python2 | colrm 1 8 | colrm 4)/site-packages/sofastats/start.py "\
+ >> sofastats
+ chmod a+x sofastats
+ install -D sofastats $pkgdir/usr/bin/sofastats
+ install -D copyright $pkgdir/usr/share/licenses/$pkgname/copyright
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
+
diff --git a/setup.py b/setup.py
new file mode 100644
index 00000000000..810ac55497c
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,33 @@
+from distutils.core import setup
+
+setup(
+name = 'sofastats',
+description = 'Statistics Open For All',
+version = '1.4.3',
+author = 'Grant Paton-Simpson',
+author_email = 'grant@sofastatistics.com',
+package_dir = {'sofastats':'sofa_main'},
+packages = ['sofastats',
+ 'sofastats.boomslang',
+ 'sofastats.dbe_plugins'],
+package_data = {'sofastats':['css/*',
+ 'images/*',
+ '_internal/*',
+ 'locale/br/LC_MESSAGES/sofastats.mo',
+ 'locale/ca_ES/LC_MESSAGES/sofastats.mo',
+ 'locale/de_DE/LC_MESSAGES/sofastats.mo',
+ 'locale/en_GB/LC_MESSAGES/sofastats.mo',
+ 'locale/es_ES/LC_MESSAGES/sofastats.mo',
+ 'locale/fr_FR/LC_MESSAGES/sofastats.mo',
+ 'locale/gl_ES/LC_MESSAGES/sofastats.mo',
+ 'locale/hr_HR/LC_MESSAGES/sofastats.mo',
+ 'locale/it_IT/LC_MESSAGES/sofastats.mo',
+ 'locale/mn/LC_MESSAGES/sofastats.mo',
+ 'locale/pt_BR/LC_MESSAGES/sofastats.mo',
+ 'locale/ru_RU/LC_MESSAGES/sofastats.mo',
+ 'locale/sl_SL/LC_MESSAGES/sofastats.mo',
+ 'locale/tr_TR/LC_MESSAGES/sofastats.mo',
+ 'projs/*',
+ 'reports/sofastats_report_extras/*',
+ 'vdts/*']}
+)
diff --git a/sofastats.desktop b/sofastats.desktop
new file mode 100644
index 00000000000..4cec7e7486f
--- /dev/null
+++ b/sofastats.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=SOFA Statistics
+GenericName=Analysis package
+Comment=VoIP and Instant Messaging client
+Icon=/usr/lib/python2.7/site-packages/sofastats/images/sofa_48x48.xpm
+Type=Application
+Categories=Science
+Exec=/usr/bin/sofastats
+Terminal=false \ No newline at end of file