summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Urquijo2015-08-29 22:31:27 -0500
committerAndres Urquijo2015-08-29 22:31:27 -0500
commitb2cec7187cc3ee509ba5372d4e0ad5a76968e3ea (patch)
treeb1d26c5cf0c48ceac1936f1966949e44c8959bb8
downloadaur-b2cec7187cc3ee509ba5372d4e0ad5a76968e3ea.tar.gz
Adding package
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD44
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2b90aa9adb0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = mathgl
+ pkgdesc = A library for making high-quality scientific graphics
+ pkgver = 2.3.3
+ pkgrel = 1
+ url = http://mathgl.sourceforge.net
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = swig
+ depends = libpng
+ depends = libgl
+ depends = libharu
+ depends = python2
+ depends = hdf5
+ depends = texlive-bin
+ depends = texlive-core
+ source = http://downloads.sourceforge.net/project/mathgl/mathgl/mathgl%202.3.3/mathgl-2.3.3.tar.gz
+ md5sums = c37d6f42d4897675bf89fae635aa6868
+
+pkgname = mathgl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..125a9c897b6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer : Andres Urquijo <alfagalileox@gmail.com>
+
+pkgname=mathgl
+pkgver=2.3.3
+pkgrel=1
+pkgdesc="A library for making high-quality scientific graphics"
+arch=('i686' 'x86_64')
+url="http://${pkgname}.sourceforge.net"
+license=('GPL3')
+depends=('libpng' 'libgl' 'libharu' 'python2' 'hdf5' 'texlive-bin' 'texlive-core')
+makedepends=( 'cmake' 'swig')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}%20${pkgver}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('c37d6f42d4897675bf89fae635aa6868')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ [[ -d build ]] || mkdir build && cd build
+
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ -Denable-double=ON \
+ -Denable-json=ON \
+ -Denable-json-sample=OFF \
+ -Denable-mgltex=ON \
+ -Denable-opengl=ON \
+ -Denable-doc-pdf-en=ON \
+ -Denable-all-docs=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-python=ON \
+ -Denable-wx=ON \
+ -Denable-qt5=ON
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
+ make DESTDIR="${pkgdir}" install
+}