Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

scidavis.PKGBULD

By: a guest on Oct 22nd, 2010  |  syntax: Bash  |  size: 1.88 KB  |  views: 173  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Knut Franke - Knut.Franke*gmx.de
  2. # Contributor: Olaf Leidinger <leidola@newcon.de>
  3. # Contributor: Robal <nigrantis.tigris*.gmail.com>
  4. pkgname=scidavis
  5. pkgver=0.2.4
  6. pkgrel=4
  7. pkgdesc="Free application for Scientific Data Analysis and Visualization, started as a fork of QtiPlot"
  8. arch=("i686" "x86_64")
  9. depends=('qt>=4.3' 'qt-assistant-compat' 'qwt>=5.1' 'qwtplot3d>=0.2.6'
  10.          'gsl>=1.8' 'muparser>=1.28' 'zlib>=1.2.3'
  11.                         'python2>=2.5' 'pyqt>=4.2' 'sip>=4.6'
  12.                         'desktop-file-utils')
  13. license=("GPL")
  14. url="http://scidavis.sourceforge.net/"
  15. source=("http://prdownloads.sourceforge.net/sourceforge/scidavis/scidavis-$pkgver.tar.bz2"
  16.         "scidavis.pro.patch"
  17.         "scidavis.install"
  18.         "qt-assistant-compat.patch"
  19.         "scidavis.pyton2.patch")
  20. install="scidavis.install"
  21. md5sums=('c5650475c5e0b22f9ee5dc49630a0e89'
  22.          '5973f8d7e6af56bb3d50e6ac680ee3fb'
  23.          '737bc185c599447d4eef7c215dabecc9'
  24.          '450b7139f913210dd8a0ffbde03e86be'
  25.          'c79966a3202851a106590fdbfecb9766'
  26.          )
  27.  
  28. build() {
  29.   cd $startdir/src/scidavis-$pkgver/scidavis || return 1
  30.  
  31.   patch < $startdir/src/scidavis.pro.patch || return 1
  32.   patch -p2 < $startdir/src/qt-assistant-compat.patch || return 1
  33.   patch  < $startdir/src/scidavis.pyton2.patch || return 1
  34.  
  35.   # There appears to be a problem with qmake not generating the install target for translation files,
  36.   # at least with Qt 4.4.3. Target is generated if .qm files exist at qmake run time, though.
  37.   (lupdate scidavis.pro && lrelease scidavis.pro) || return 1
  38.  
  39.   qmake || return 1
  40.   make  || return 1
  41.  
  42.   make INSTALL_ROOT=$startdir/pkg install || return 1
  43.  
  44.   _pydir=`python2 -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
  45.   python2 `dirname $_pydir`/py_compile.py $pkgdir/etc/scidavisrc.py || return 1
  46.   python2 `dirname $_pydir`/py_compile.py $pkgdir/usr/share/scidavis/scidavisUtil.py || return 1
  47.  
  48. }
clone this paste RAW Paste Data