[arch-commits] Commit in cgns/repos (community-x86_64 community-x86_64/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Thu Jan 11 21:43:25 UTC 2018
Date: Thursday, January 11, 2018 @ 21:43:25
Author: archange
Revision: 281493
archrelease: copy trunk to community-x86_64
Added:
cgns/repos/community-x86_64/
cgns/repos/community-x86_64/PKGBUILD
(from rev 281492, cgns/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: cgns/repos/community-x86_64/PKGBUILD (from rev 281492, cgns/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-01-11 21:43:25 UTC (rev 281493)
@@ -0,0 +1,58 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+# Contriburor: Mathias Anselmann <mathias.anselmann at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: lainme <lainme993 at gmail.com>
+# Contributor: Klimov Max <cleemmi at gmail.com>
+
+_pkgname=CGNS
+pkgname=cgns
+pkgver=3.3.1
+pkgrel=5
+pkgdesc="Standard for recording and recovering computer data associated with the numerical solution of fluid dynamics equations"
+arch=('x86_64')
+url='https://cgns.github.io/'
+license=('custom')
+depends=('tk' 'hdf5' 'libxmu' 'glu')
+makedepends=('gcc-fortran' 'cmake')
+options=(!makeflags)
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/${_pkgname}/${_pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('81093693b2e21a99c5640b82b267a495625b663d7b8125d5f1e9e7aaa1f8d469')
+
+prepare(){
+ mkdir -p build
+}
+
+build() {
+ cd build
+
+ cmake ../${_pkgname}-${pkgver} \
+ -DCGNS_BUILD_CGNSTOOLS=ON \
+ -DCGNS_BUILD_SHARED=ON \
+ -DCGNS_ENABLE_64BIT=ON \
+ -DCGNS_ENABLE_FORTRAN=ON \
+ -DCGNS_ENABLE_HDF5=ON \
+ -DCGNS_ENABLE_LEGACY=ON \
+ -DCGNS_ENABLE_SCOPING=OFF \
+ -DCGNS_ENABLE_TESTS=ON \
+ -DCMAKE_BUILD_TYPE="Release" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON
+
+ make
+}
+
+
+check() {
+ cd build
+
+ make test
+}
+
+package() {
+ cd build
+
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "${srcdir}"/${_pkgname}-${pkgver}/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list