[arch-commits] Commit in cgns/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Mon Feb 17 15:07:18 UTC 2020


    Date: Monday, February 17, 2020 @ 15:07:17
  Author: archange
Revision: 574284

upgpkg: cgns 3.4.1-1

Clean PKGBUILD as well

Modified:
  cgns/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++--------------------------
 1 file changed, 14 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-17 15:07:12 UTC (rev 574283)
+++ PKGBUILD	2020-02-17 15:07:17 UTC (rev 574284)
@@ -7,26 +7,20 @@
 
 _pkgname=CGNS
 pkgname=cgns
-pkgver=3.4.0
-pkgrel=2
+pkgver=3.4.1
+pkgrel=1
 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')
+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=('6372196caf25b27d38cf6f056258cb0bdd45757f49d9c59372b6dbbddb1e05da')
+source=(https://github.com/${_pkgname}/${_pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('d32595e7737b9332243bd3de1eb8c018a272f620f09b289dea8292eba1365994')
 
-prepare(){
-    mkdir -p build
-}
-
 build() {
-    cd build
-
-    cmake ../${_pkgname}-${pkgver} \
+    cmake -B build -S ${_pkgname}-${pkgver} \
         -DCGNS_BUILD_CGNSTOOLS=ON \
         -DCGNS_BUILD_SHARED=ON \
         -DCGNS_ENABLE_64BIT=ON \
@@ -40,21 +34,15 @@
         -DCMAKE_INSTALL_PREFIX=/usr \
         -DCMAKE_SKIP_RPATH=ON
 # HDF5_FOUND=OFF is a (silly) workaround for https://cgnsorg.atlassian.net/browse/CGNS-143
-
-    make
+    make -C build
 }
 
 
 check() {
-    cd build
-
-    make test
+    make -C build test
 }
 
 package() {
-    cd build
-
-    make DESTDIR="${pkgdir}" install
-
-    install -Dm644 "${srcdir}"/${_pkgname}-${pkgver}/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+    make -C build DESTDIR="${pkgdir}" install
+    install -Dm644 ${_pkgname}-${pkgver}/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }



More information about the arch-commits mailing list