summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e64c0c53cb1b58207f0d8eb4db00d2f76a85a89 (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
# Maintainer: Ammann Max <maximilian.ammann@googlemail.com>
pkgname=qwtplot3d-svn
replaces=('qwtplot3d')
conflicts=('qwtplot3d')
pkgver=0.2.7r259
pkgrel=1
pkgdesc="QwtPlot3D is a graphics extension to the Qt GUI application framework. It provides a 3D plotting widget for scientific data and mathematical expressions. It compares to the existing Qwt Project."
arch=('i686' 'x86_64')
url="http://qwtplot3d.sourceforge.net/"
license=('zlib')
makedepends=('gcc' 'make' 'qt5-tools' 'subversion')
depends=('qt5-base')
options=('!strip' '!buildflags' 'staticlibs')
source=('qwtplot3d::svn+http://svn.code.sf.net/p/qwtplot3d/code/branches/maintain_0_2_x/#revision=259')
md5sums=('SKIP')

build() {
  cd "${srcdir}/qwtplot3d/qwtplot3d"
  sed -i '/DESTDIR/s/^/#/g' qwtplot3d.pro

  sed -i '/^CONFIG/ s/$/ shared_and_static build_all/' qwtplot3d.pro 

  sed -i '1s/^/#include <GL\/glu.h>\n/' include/qwt3d_openglhelper.h
}

package() {
  cd "${srcdir}/qwtplot3d/qwtplot3d"
  qmake DESTDIR=$pkgdir/usr/lib
  make -j8

  mkdir -p $pkgdir/"usr/include/qwtplot3d" 
  cp "include"/* $pkgdir/"usr/include/qwtplot3d" 
}