summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraur@manjaro2016-08-09 15:26:00 +0200
committeraur@manjaro2016-08-10 14:20:20 +0200
commit3e9bbb3eefdb2e66e5861675dda0a28723652962 (patch)
tree540b8f144eba30c2099f5d6c14a5282698a377c3
downloadaur-3e9bbb3eefdb2e66e5861675dda0a28723652962.tar.gz
1
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD39
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ca853f1ffe7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+# Generated by mksrcinfo v8
+# Wed Aug 10 12:19:21 UTC 2016
+pkgbase = ngsolve-git
+ pkgdesc = A general purpose Finite Element Library on top of Netgen.
+ pkgver = PKGVER
+ pkgrel = PKGREL
+ url = https://sourceforge.net/projects/ngsolve/
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = git
+ makedepends = cmake
+ depends = lapack
+ depends = blas
+ depends = python-mpi4py
+ depends = tix
+ depends = glu
+ depends = netgen-git
+ depends = openmpi
+ depends = suitesparse
+ options = !buildflags
+ source = ngsolve::git+http://git.code.sf.net/p/ngsolve/git#branch=master
+ md5sums = SKIP
+
+pkgname = ngsolve-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2f83e89077a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Felix Schindler <aur at felixschindler dot net>
+
+pkgname=ngsolve-git
+pkgver=PKGVER
+pkgrel=PKGREL
+pkgdesc="A general purpose Finite Element Library on top of Netgen."
+url=https://sourceforge.net/projects/ngsolve/
+license=('LGPL2.1')
+arch=('i686' 'x86_64')
+makedepends=('git' 'cmake')
+depends=('lapack' 'blas' 'python-mpi4py' 'tix' 'glu' 'netgen-git' 'openmpi' 'suitesparse')
+options=('!buildflags')
+source=("${pkgname%-git}::git+http://git.code.sf.net/p/ngsolve/git#branch=master")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}"/${pkgname%-git}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ # now we build ngsolve
+ cd "${srcdir}"/${pkgname%-git}
+ mkdir build && cd build
+ # We would like to install to ${pkgdir}/opt/netgen, but ngsolve uses this
+ # variable to find netgen. So we provide /opt/netgen ...
+ cmake -DINSTALL_DIR="/opt/netgen" -DCMAKE_BUILD_TYPE=RELEASE -DUSE_MPI=ON ..
+
+ # ... and have to sed our way out of this.
+ sed -i "s;CMAKE_INSTALL_PREFIX \"/opt/netgen\";CMAKE_INSTALL_PREFIX \"${pkgdir}/opt/netgen\";g" cmake_install.cmake
+
+ make
+}
+
+package() {
+ cd "${srcdir}"/${pkgname%-git}/build
+ make install
+}
+