updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / qtiplot-opj / PKGBUILD
blob78dd600cad182dc517afa41abc2d4b6f55de6605
1 # Maintainer: sofasurfer@gmail.com
2 pkgname=qtiplot-opj
3 pkgver=0.9.8.9
4 pkgrel=3
5 pkgdesc="Data analysis and scientific plotting - free clone of Origin, with Origin import enabled \
6 (see: http://www.staff.science.uu.nl/~zeven101/qtiplot.html)"
7 arch=('i686' 'x86_64')
8 url="http://soft.proindependent.com/qtiplot.html"
9 provides=('qtiplot')
10 conflicts=('qtiplot')
11 depends=('muparser>=1.30' 'gsl' 'pyqt' 'sip' \
12          'boost>=1.39.0' 'libgl' 'shared-mime-info' 'tamu-anova' 'python2' \
13         'qt-assistant-compat'
15 makedepends=('pkgconfig')
16 license=('GPL2')
17 install=${pkgname}.install
20 source=("http://download.berlios.de/qtiplot/qtiplot-${pkgver}.tar.bz2"
21         "http://download.berlios.de/qtiplot/QTeXEngine-0.3-opensource.zip"
22 "opj.tar.bz2"
23 "qtiplot.patch"
24 "qtiplot.desktop"
25 "qtiplot.xml"
26 "qtiplot-opj.install"
27 "build.conf"
30 noextract=("opj.tar.bz2"
31            "QTeXEngine-0.3-opensource.zip"
34 md5sums=('652096a365851da3b5f6fefdcbe2aaec'
35 'd1b234623770ec6209b14d1b5137f2f1'
36 '8a6bdb368ab264e36a5210d8ce0f5439'
37 '689ed4557e4c1b088e89b40d2ac349fe'
38 '6e990ff9c3a456b446b581492ddf669c'
39 '35683f3b32e1edcca0bb02c471d284e9'
40 '58b7f423e59db7764f53988cdbd7308e'
41 'b5e7832b05c991c80b83964670d00af8'
42         )
44 build() {
45 cd  $srcdir
47 tar xf qtiplot-${pkgver}.tar.bz2
48 tar xvf opj.tar.bz2 -C qtiplot-${pkgver}/
49 unzip -o QTeXEngine-0.3-opensource.zip -d qtiplot-${pkgver}/3rdparty
51 patch -p0 < qtiplot.patch
52 cp build.conf qtiplot-${pkgver}/
53 cd qtiplot-${pkgver}
56 qmake qtiplot.pro || return 1
57 make || return 1
60 package() {
61 cd "$srcdir/qtiplot-${pkgver}"
63 INSTALL_ROOT=${pkgdir} make install || return 1
65 install -D -m644 ${srcdir}/qtiplot-${pkgver}/qtiplot_logo.png ${pkgdir}/usr/share/pixmaps/qtiplot_logo.png || return 1
66 install -D -m644 ${srcdir}/qtiplot.desktop ${pkgdir}/usr/share/applications/qtiplot.desktop || return 1
67 install -D -m644 ${srcdir}/qtiplot.xml ${pkgdir}/usr/share/mime/packages/qtiplot.xml || return 1