summaryrefslogtreecommitdiff
path: root/cgns
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-06 10:58:37 +0200
committerErich Eckner <git@eckner.net>2017-07-06 10:58:37 +0200
commitc6140b56b7c1fa3f9a5b8d639cd4d54a4dc20f99 (patch)
tree0e0d41fbc98ae348b6830d26c505942e4d6a01d6 /cgns
parent5fa6c283a62d9bc135c9046851dc1fdc3d460f56 (diff)
downloadarchlinuxewe.git.save-c6140b56b7c1fa3f9a5b8d639cd4d54a4dc20f99.tar.xz
cgns new
Diffstat (limited to 'cgns')
-rw-r--r--cgns/PKGBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/cgns/PKGBUILD b/cgns/PKGBUILD
new file mode 100644
index 00000000..411e6345
--- /dev/null
+++ b/cgns/PKGBUILD
@@ -0,0 +1,72 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+# Contriburor: Mathias Anselmann <mathias.anselmann@gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: lainme <lainme993@gmail.com>
+# Contributor: Klimov Max <cleemmi@gmail.com>
+
+pkgname=cgns
+_PKGNAME=CGNS
+pkgver=3.3.0
+pkgrel=3
+pkgdesc='Standard for recording and recovering computer data associated with the numerical solution of fluid dynamics equations'
+arch=('i686' 'x86_64')
+url='http://www.cgns.org'
+license=('custom')
+depends=('tk' 'hdf5' 'libxmu' 'glu')
+makedepends=('gcc-fortran' 'cmake')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/${_PKGNAME}/${_PKGNAME}/archive/v${pkgver}.tar.gz)
+sha256sums=('8422c67994f8dc6a2f201523a14f6c7d7e16313bdd404c460c16079dbeafc662')
+
+# need to tell cmake when to build 64bit version
+if [[ $CARCH == "x86_64" ]]
+then
+ _64bits=ON
+else
+ _64bits=OFF
+fi
+
+prepare(){
+ cd "${srcdir}"
+
+ # Out of source build
+ rm -rf -- build
+ mkdir -p -- build
+}
+
+build() {
+ cd "${srcdir}/build"
+
+ cmake \
+ -DCGNS_BUILD_CGNSTOOLS:BOOL=ON \
+ -DCGNS_BUILD_SHARED:BOOL=ON \
+ -DCGNS_ENABLE_64BIT:BOOL=${_64bits} \
+ -DCGNS_ENABLE_FORTRAN:BOOL=ON \
+ -DCGNS_ENABLE_HDF5:BOOL=ON \
+ -DCGNS_ENABLE_LEGACY:BOOL=ON \
+ -DCGNS_ENABLE_SCOPING:BOOL=OFF \
+ -DCGNS_ENABLE_TESTS:BOOL=ON \
+ -DCMAKE_BUILD_TYPE:STRING="Release" \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ "../${_PKGNAME}-${pkgver}"
+
+ make -j1
+}
+
+
+check() {
+ cd "${srcdir}/build"
+
+ make test
+}
+
+package() {
+ cd "${srcdir}/build"
+
+ make DESTDIR="${pkgdir}" install
+
+ # install license
+ install -Dm644 "${srcdir}/${_PKGNAME}-${pkgver}/license.txt" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+}