aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netcdf-fortran/APKBUILD
blob: c059be22a5c1f2f309109622c605524cbe844e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=netcdf-fortran
pkgver=4.5.2
pkgrel=1
pkgdesc="NetCDF fortran bindings"
url="https://www.unidata.ucar.edu/software/netcdf/"
arch="all !armhf !armv7 !s390x !mips !mips64"  # disabling on armhf and armv7 as netcdf is not available
license="Apache-2.0"
makedepends="
	cmake
	doxygen
	gfortran
	graphviz
	m4
	netcdf-dev
	"
depends_dev="
	netcdf-dev
	"
subpackages="
	$pkgname-doc
	$pkgname-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/Unidata/netcdf-fortran/archive/v$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf $pkgdir/usr/include/CMakeFiles
}

check() {
	make check
}
sha512sums="d9f5463ee31dab62d5a1b2feb0c780c344978f179237cd23f92ea32a4b400910a66a9ac4e446be734166ecc7578ef25a7183b4444926a6f386d9a5e02d1cf4f6  netcdf-fortran-4.5.2.tar.gz"