summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hoppe2017-10-02 21:29:23 +0200
committerMarcel Hoppe2017-10-02 21:29:23 +0200
commita5075fb95e6df842ef1547387c21b7f1fc89bae9 (patch)
treeff102f154fb5671184e868f9b02cef1b9ab3c525
downloadaur-a5075fb95e6df842ef1547387c21b7f1fc89bae9.tar.gz
v1.11.0
-rw-r--r--.SRCINFO53
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD70
-rw-r--r--omplot.desktop10
4 files changed, 138 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0285540b0cef
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,53 @@
+# Generated by mksrcinfo v8
+# Mon Oct 2 19:28:43 UTC 2017
+pkgbase = openmodelica-omplot
+ pkgdesc = The Open Source Modelica Suite - OpenModelica Plot
+ pkgver = 1.11.0
+ pkgrel = 1
+ url = https://openmodelica.org
+ arch = i686
+ arch = x86_64
+ groups = openmodelica
+ license = OSMC-PL
+ makedepends = openmodelica-qwt
+ makedepends = gcc-fortran
+ makedepends = boost
+ makedepends = clang
+ makedepends = cmake
+ makedepends = java-environment
+ makedepends = antlr2
+ makedepends = git
+ makedepends = expat
+ makedepends = ncurses
+ makedepends = readline
+ makedepends = opencl-headers
+ makedepends = imagemagick
+ depends = openmodelica-omc
+ depends = openmodelica-qwt
+ depends = java-environment
+ depends = lpsolve
+ depends = hdf5-openmpi
+ depends = omniorb
+ depends = openscenegraph
+ depends = sundials
+ depends = libatomic_ops
+ depends = python
+ depends = gtkglext
+ depends = ruby
+ depends = coin-or-ipopt
+ depends = qjson
+ depends = suitesparse
+ depends = boost-libs
+ depends = qt5-webkit
+ depends = qt5-svg
+ depends = qt5-tools
+ conflicts = openmodelica-dev
+ conflicts = openmodelica-dev-omplot
+ conflicts = openmodelica-git
+ source = git+https://github.com/OpenModelica/OMPlot.git#commit=8e9e7fd085ebb6d43674e33f9d516988a2194ce9
+ source = omplot.desktop
+ sha1sums = SKIP
+ sha1sums = 37c6459c391f9cf11a5c7565bc6d602087bde4b8
+
+pkgname = openmodelica-omplot
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..0596a8933eb9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+!PKGBUILD
+!.SRCINFO
+!.gitignore
+!*.desktop
+*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..95da1201c65e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,70 @@
+pkgname=openmodelica-omplot
+pkgver=1.11.0
+pkgrel=1
+
+pkgdesc="The Open Source Modelica Suite - OpenModelica Plot"
+arch=('i686' 'x86_64')
+url="https://openmodelica.org"
+license=('OSMC-PL')
+groups=(openmodelica)
+
+_group=OpenModelica
+_name=OMPlot
+_commit=8e9e7fd085ebb6d43674e33f9d516988a2194ce9
+
+depends=('openmodelica-omc' 'openmodelica-qwt' 'java-environment' 'lpsolve' 'hdf5-openmpi' 'omniorb' 'openscenegraph' 'sundials' 'libatomic_ops' 'python' 'gtkglext' 'ruby' 'coin-or-ipopt' 'qjson' 'suitesparse' 'boost-libs' 'qt5-webkit' 'qt5-svg' 'qt5-tools')
+
+makedepends=('openmodelica-qwt' 'gcc-fortran' 'boost' 'clang' 'cmake' 'java-environment' 'antlr2' 'git' 'expat' 'ncurses' 'readline' 'opencl-headers' 'imagemagick')
+
+conflicts=('openmodelica-dev' 'openmodelica-dev-omplot' 'openmodelica-git')
+
+source=( "git+https://github.com/${_group}/${_name}.git#commit=${_commit}"
+ 'omplot.desktop')
+sha1sums=('SKIP'
+ '37c6459c391f9cf11a5c7565bc6d602087bde4b8')
+
+prepare() {
+ cd "$srcdir/$_name"
+ git checkout "${_commit}"
+ sed -i "s,../,https://github.com/${_group}/,g" .gitmodules
+ git submodule sync
+ git submodule update --init --recursive
+}
+
+build() {
+ cd "$srcdir/$_name"
+ autoconf
+ export CPPFLAGS="$CPPFLAGS -DH5_USE_18_API"
+ ./configure --prefix=/usr/ --with-omniORB CXX=clang++
+ make mkbuilddirs
+ make -C OMPlot/OMPlotGUI -f Makefile.unix
+ cp -a OMPlot/OMPlotGUI/*.h build/include/omplot
+}
+
+package() {
+ cd "$srcdir/$_name/build"
+ mkdir -p ${pkgdir}/usr
+ cp -r * ${pkgdir}/usr
+
+ cd "$srcdir/$_name"
+ mkdir -p "$srcdir/tmp"
+
+ cp "OMPlot/OMPlotGUI/Resources/icons/omplot.ico" "$srcdir/tmp/omplot.ico"
+
+ cd "$srcdir/tmp/"
+
+ for icon in *.ico; do
+ base=$(basename "${icon}" ".ico")
+ convert "${icon}" "${base}.png"
+ for file in ${base}*.png; do
+ size=$(file $file | grep -Po "\d+ x \d+" | grep -Po "^\d+")
+ install -D -m644 "$file" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${base}.png"
+ done
+ done
+
+ cd "$srcdir"
+
+ for file in *.desktop; do
+ install -D -m644 "$file" "${pkgdir}/usr/share/applications/${file}"
+ done
+}
diff --git a/omplot.desktop b/omplot.desktop
new file mode 100644
index 000000000000..6752b939a594
--- /dev/null
+++ b/omplot.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Name=OMPlot
+Comment=Open Modelicas OMPlot
+Terminal=false
+Type=Application
+Categories=Development;OpenModelica;
+Exec=OMPlot
+Icon=omplot
+NoDisplay=true