summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 240d1dc0cb22784d8de6ae9719464eac21f1932a (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
41
42
43
44
45
# Contributor : Andres Urquijo <alfagalileox@gmail.com>

pkgname=mathgl
pkgver=8.0.1
pkgrel=1
pkgdesc="A library for making high-quality scientific graphics"
arch=('i686' 'x86_64')
url="http://${pkgname}.sourceforge.net"
license=('GPL3')
depends=('python-numpy' 'texlive-bin' 'texlive-binextra' 'libharu' 'hdf5' 'gsl' 'glu' 'qt5-base' 'libpng' 'freeglut')
makedepends=('cmake' 'swig')
source=("https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgname%208.0/$pkgname-$pkgver.tar.gz")
md5sums=('e86d414f180f7d3e3f1495aca7134409')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
      	[[ -d build ]] && rm -rf build
    	mkdir build && cd build

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
           -Denable-all-widgets=OFF \
           -Denable-double=ON \
           -Denable-mgltex=ON \
           -Denable-opengl=ON \
           -Denable-doc-info=ON \
           -Denable-doc-html=ON \
           -Denable-gif=ON \
           -Denable-glut=ON \
           -Denable-hdf5=ON \
           -Denable-jpeg=ON \
           -Denable-mgl2=ON \
           -Denable-gsl=ON \
           -Denable-pdf=ON \
           -Denable-png=ON \
           -Denable-qt5=ON \
           -Denable-python=ON
  
  make
  cp ../translations/mathgl_en.mo .
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/build"
  make DESTDIR="${pkgdir}" install
}