[arch-commits] Commit in netcdf/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Fri Apr 10 23:43:39 UTC 2020
Date: Friday, April 10, 2020 @ 23:43:39
Author: archange
Revision: 613198
upgpkg: netcdf 4.7.4-1
Also PKGBUILD cleaning
Modified:
netcdf/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++----------------
1 file changed, 7 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-10 22:22:12 UTC (rev 613197)
+++ PKGBUILD 2020-04-10 23:43:39 UTC (rev 613198)
@@ -3,7 +3,7 @@
# Contributor: damir <damir at archlinux.org>
pkgname=netcdf
-pkgver=4.7.3
+pkgver=4.7.4
pkgrel=1
pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
arch=(x86_64)
@@ -14,15 +14,10 @@
options=(!makeflags)
license=(custom)
source=(https://github.com/Unidata/netcdf-c/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('05d064a2d55147b83feff3747bea13deb77bef390cb562df4f9f9f1ce147840d')
+sha256sums=('99930ad7b3c4c1a8e8831fb061cb02b2170fc8e5ccaeda733bd99c3b9d31666b')
-prepare() {
- mkdir -p build
-}
-
build() {
- cd build
- cmake ../${pkgname}-c-${pkgver} \
+ cmake -B build -S ${pkgname}-c-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
@@ -33,18 +28,14 @@
-DENABLE_FAILING_TESTS=ON \
-DENABLE_FILTER_TESTING=ON \
-DENABLE_LARGE_FILE_TESTS=ON
- make
+ make -C build
}
check() {
- cd build
- make test
+ make -C build test
}
package() {
- cd build
- make DESTDIR="${pkgdir}" install
-
- cd "${srcdir}"/${pkgname}-c-${pkgver}
- install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 ${pkgname}-c-${pkgver}/COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
More information about the arch-commits
mailing list